Apply Structural Equation Modeling (SEM) to test hypothesized causal structures by combining measurement models (CFA) and structural models (path analysis).

MITAuto-check passedLegal & Compliance

Install Grad Sem

skills CLI
$ npx skills add asgard-ai-platform/skills --skill grad-sem -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install asgard-ai-platform/skills grad-sem --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/asgard-ai-platform/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/grad-sem .claude/skills/grad-sem && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
grad-sem
GitHub stars
242
Token cost
~1.2k tokens
SKILL.md length
400 words
Files
3 (incl. references)
Skills in repo
207
Repo updated
First seen
Licence
MIT

At a glance

Apply Structural Equation Modeling (SEM) to test hypothesized causal structures by combining measurement models (CFA) and structural models (path analysis).

  • Works in 4 steps: Specify the Measurement Model → Assess Measurement Model Fit → Specify and Estimate the Structural Model → …
  • The user needs to validate latent constructs
  • SKILL.md covers Overview, When to Use, When NOT to Use and Assumptions, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Grad Sem is an agent skill from asgard-ai-platform/skills. Apply Structural Equation Modeling (SEM) to test hypothesized causal structures by combining measurement models (CFA) and structural models (path analysis). Use this skill when the user needs to validate latent constructs, test mediation or moderation paths, assess model fit with CFI/TLI/RMSEA/SRMR, or when they ask 'do these variables form a causal chain', 'how do I test my theoretical model', or 'is my measurement model valid'.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `examples/sample_scenario.md` and `references/estimation.md`).

It sits in Legal & Compliance, covering Dispute resolution. The repository describes itself as: 301 open-source coding agent skills across 22 domains — methodology, judgment & gotchas packaged as Claude Agent Skills for the Asgard AI Platform. The licence is MIT.

When your agent uses it

  • The user needs to validate latent constructs
  • Moderation paths
  • Assess model fit with CFI/TLI/RMSEA/SRMR
  • They ask do these variables form a causal chain

Example prompts

  • “do these variables form a causal chain”
  • “how do I test my theoretical model”
  • “is my measurement model valid”
  • “/grad-sem”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Specify the Measurement Model
  2. Assess Measurement Model Fit
  3. Specify and Estimate the Structural Model
  4. Report and Interpret

What it can do on your machine

Read from SKILL.md and the folder at commit 4e7f4f8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Grad Sem loads about 1.2k tokens when it runs, and up to ~2k if it reads all its reference files. Until then it costs about 111 tokens; SKILL.md has 400 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~111
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from asgard-ai-platform/skills at commit 4e7f4f8, republished under its MIT licence (© asgard-ai-platform). 400 words, ~1,153 tokens.

Download SKILL.mdSave it as .claude/skills/grad-sem/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
grad-sem
description
Apply Structural Equation Modeling (SEM) to test hypothesized causal structures by combining measurement models (CFA) and structural models (path analysis). Use this skill when the user needs to validate latent constructs, test mediation or moderation paths, assess model fit with CFI/TLI/RMSEA/SRMR, or when they ask 'do these variables form a causal chain', 'how do I test my theoretical model', or 'is my measurement model valid'.
metadata.category
WP-31 量化方法
metadata.tags
SEM, structural-equation-modeling, CFA, path-analysis, model-fit, latent-variable

SEM 結構方程模型

Overview

Structural Equation Modeling (SEM) simultaneously estimates measurement models (how observed indicators map to latent constructs) and structural models (directional paths among constructs). It integrates confirmatory factor analysis with path analysis to test whether empirical data are consistent with a hypothesized theoretical structure.

When to Use

  • Testing a full theoretical model with latent constructs and directional paths
  • Evaluating mediation chains (X → M → Y) with multiple mediators
  • Assessing whether survey items adequately reflect their intended constructs (CFA)
  • Comparing alternative theoretical models on the same data

When NOT to Use

  • Sample size below 200 (or below 10 cases per estimated parameter)
  • Exploratory research with no a priori theoretical model
  • All variables are observed and model is a simple regression
  • Data are severely non-normal and you lack robust estimators

Assumptions

IRON LAW: SEM does NOT prove causation — it tests whether data is CONSISTENT
with a hypothesized causal structure. Good fit does NOT mean the model is
correct; it means the model cannot be rejected.

Key assumptions:

  1. Correct model specification — omitted paths or constructs bias estimates
  2. Multivariate normality for ML estimation (or use robust estimators)
  3. Sufficiently large sample size (N ≥ 200 as rule of thumb)
  4. No excessive multicollinearity among indicators

Methodology

Step 1 — Specify the Measurement Model

Define latent constructs and their observed indicators. Run CFA to confirm factor loadings, assess convergent validity (AVE ≥ 0.50), and discriminant validity.

Step 2 — Assess Measurement Model Fit

Evaluate fit indices: CFI ≥ 0.90, TLI ≥ 0.90, RMSEA ≤ 0.08, SRMR ≤ 0.08. Examine modification indices cautiously — only respecify with theoretical justification.

Step 3 — Specify and Estimate the Structural Model

Add directional paths among latent constructs based on theory. Estimate path coefficients and their significance. Compare nested models using chi-square difference test.

Show full SKILL.md (148 more words)Show less
Step 4 — Report and Interpret

Report standardized path coefficients, R² for endogenous constructs, and overall fit. Discuss indirect effects if mediation is hypothesized. See references/estimation.md for mathematical notation and estimation details.

Output Format

markdown
## SEM Analysis: [Study Title]

### Measurement Model (CFA)
| Construct | Indicator | Std. Loading | AVE | CR |
|-----------|-----------|-------------|-----|-----|
| [name] | [item] | x.xx | x.xx | x.xx |

### Model Fit
| Index | Value | Threshold | Assessment |
|-------|-------|-----------|------------|
| CFI | x.xx | ≥ 0.90 | [pass/fail] |
| TLI | x.xx | ≥ 0.90 | [pass/fail] |
| RMSEA | x.xx | ≤ 0.08 | [pass/fail] |
| SRMR | x.xx | ≤ 0.08 | [pass/fail] |

### Structural Paths
| Path | Std. β | S.E. | p-value | Supported? |
|------|--------|------|---------|------------|
| X → M | x.xx | x.xx | x.xx | [Yes/No] |

### Key Findings
- [Interpretation of results]

### Limitations
- [Note any assumption violations]

Gotchas

  • Equivalent models with identical fit but different causal directions always exist — SEM cannot distinguish them
  • Modification indices tempt data-driven respecification that capitalizes on chance
  • Parceling items masks misspecification in the measurement model
  • Chi-square test is overly sensitive with N > 500; rely on approximate fit indices
  • Non-normal data require MLR or bootstrapping, not default ML
  • Reporting only significant paths without the full hypothesized model is selective reporting

References

  • Kline, R. B. (2016). Principles and Practice of Structural Equation Modeling (4th ed.). Guilford Press.
  • Hu, L., & Bentler, P. M. (1999). Cutoff criteria for fit indexes. Structural Equation Modeling, 6(1), 1-55.
  • Anderson, J. C., & Gerbing, D. W. (1988). Structural equation modeling in practice. Psychological Bulletin, 103(3), 411-423.

© asgard-ai-platform, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in grad-sem of asgard-ai-platform/skills.

  • SKILL.md
  • examples/sample_scenario.md
  • references/estimation.md

Open the folder on GitHubat commit 4e7f4f8

Compare with similar skills

Grad Sem next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Grad Sem compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Grad Sem this skillasgard-ai-platform/skills242—~1.2kAutomated safety check: PassMIT
Litigation Deadline Calendarlawve-ai/awesome-legal-skills847—~4.3kAutomated safety check: PassMIT
Moot Court Simulation Buildercat-xierluo/legal-skills721—~1.4kAutomated safety check: PassCC-BY-NC-4.0
Intake To Draftstella/stella259—~537Automated safety check: PassApache-2.0
Nla Arbitrateinternet-court/internet-court-skill6.6k1 repos~866Automated safety check: PassMIT
Nla Createinternet-court/internet-court-skill6.6k1 repos~915Automated safety check: PassMIT

Similar skills

  • Litigation Deadline Calendar

    lawve-ai/awesome-legal-skills

    Calendar litigation and arbitration deadlines from a scheduling order.

    847 GitHub stars~4.3k tokensUpdated 8 days ago
    Legal & ComplianceAuto-check passed
  • Moot Court Simulation Builder

    cat-xierluo/legal-skills

    Chinese-language skill that organizes a case file into a multi-role mock trial with judge, parties and clerk, producing a transcript, issue review and a to-strengthen list.

    721 GitHub stars~1.4k tokensUpdated yesterday
    Legal & ComplianceAuto-check passed
  • Intake To Draft

    stella/stella

    Collects the facts of an unpaid invoice, then drafts a payment demand letter.

    259 GitHub stars~537 tokensUpdated today
    Legal & ComplianceAuto-check passed
  • Nla Arbitrate

    internet-court/internet-court-skill

    Manually arbitrate NLA escrow fulfillments as an alternative to the automated oracle.

    6.6k GitHub starsUsed in 1 repo~866 tokens
    Legal & ComplianceAuto-check passed
  • Nla Create

    internet-court/internet-court-skill

    Create a Natural Language Agreement escrow on-chain. An agent skill from internet-court/internet-court-skill.

    6.6k GitHub starsUsed in 1 repo~915 tokens
    Legal & ComplianceAuto-check passed
  • Nla Fulfill

    internet-court/internet-court-skill

    Fulfill an existing NLA escrow and collect tokens. An agent skill from internet-court/internet-court-skill.

    6.6k GitHub starsUsed in 1 repo~854 tokens
    Legal & ComplianceAuto-check passed

More from asgard-ai-platform/skills

All 207 skills in this repo
  • Algo Ecom Bm25

    asgard-ai-platform/skills

    Implement BM25 ranking function for e-commerce product search relevance scoring.

    242 GitHub stars~1.4k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Mfg Cpk

    asgard-ai-platform/skills

    Calculate Cpk process capability index to assess whether a process meets specification requirements.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Price Elasticity

    asgard-ai-platform/skills

    Calculate price elasticity of demand to quantify how price changes affect sales volume.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Rank Bayesian

    asgard-ai-platform/skills

    Apply Bayesian averaging to rank items by combining observed ratings with prior expectations.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Rank Elo

    asgard-ai-platform/skills

    Implement Elo rating system to rank items or players from pairwise comparison outcomes.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Rank Wilson

    asgard-ai-platform/skills

    Calculate Wilson Score confidence intervals for ranking items by positive proportion with sample size correction.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed

Questions about Grad Sem

What does Grad Sem do?

Apply Structural Equation Modeling (SEM) to test hypothesized causal structures by combining measurement models (CFA) and structural models (path analysis). Grad Sem is an agent skill from asgard-ai-platform/skills. Apply Structural Equation Modeling (SEM) to test hypothesized causal structures by combining measurement models (CFA) and structural models (path analysis).

When should I use Grad Sem?

Grad Sem fits situations like: the user needs to validate latent constructs; moderation paths; assess model fit with CFI/TLI/RMSEA/SRMR; they ask do these variables form a causal chain.

How do I install Grad Sem in Claude Code?

Run `npx skills add asgard-ai-platform/skills --skill grad-sem -a claude-code`. Or copy the skill folder (grad-sem in asgard-ai-platform/skills) into .claude/skills/grad-sem in your project. Claude Code loads it when a task matches its description.

How do I install Grad Sem in Codex?

Run `npx skills add asgard-ai-platform/skills --skill grad-sem -a codex`. Or copy the skill folder (grad-sem in asgard-ai-platform/skills) into .agents/skills/grad-sem in your project. Codex loads it when a task matches its description.

Can I use Grad Sem in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add asgard-ai-platform/skills --skill grad-sem -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/grad-sem, .gemini/skills/grad-sem, .github/skills/grad-sem and .opencode/skills/grad-sem in your project.

What does Grad Sem need to run?

SKILL.md names no scripts, command-line tools or credentials: Grad Sem is instructions for the agent only.

Does Grad Sem access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Grad Sem safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Grad Sem use?

Grad Sem is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Grad Sem use?

About 1.2k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 822 tokens, read only when the agent opens those files.

What are the alternatives to Grad Sem?

Skills that share tags, products or a category with Grad Sem: Litigation Deadline Calendar (lawve-ai/awesome-legal-skills, 847 stars), Moot Court Simulation Builder (cat-xierluo/legal-skills, 721 stars), Intake To Draft (stella/stella, 259 stars) and Nla Arbitrate (internet-court/internet-court-skill, 6.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Grad Sem?

asgard-ai-platform (a GitHub organization) maintains it in asgard-ai-platform/skills, which has 242 GitHub stars. The repository holds 207 skills in this directory. The repository was last updated on June 6, 2026.

Source: asgard-ai-platform/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.