Use when creating new skills, specialists, agents, or packs for the Jig framework. Guides the user through an interview to determine what to build, scaffolds the artifact with valid frontmatter, checks for overlap with existing artifacts, and verifies it loads correctly. Triggered by "create a skill", "add a specialist", "extend the framework", or /extend.
From casaflownpx claudepluginhub casaperks/casaflow --plugin casaflowThis skill uses the workspace's default tool permissions.
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Enables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
PURPOSE: The meta-skill. Teaches teams to build on Jig by guiding artifact creation from intent through scaffolding to verification. Every new skill, specialist, agent, pack, or config change goes through this skill to ensure it follows the schema, avoids overlap, and loads correctly.
CONFIGURATION: Reads jig.config.md for the Concerns Checklist (to wire new artifacts into) and existing artifact inventory.
/extend invoked directlypostmortem identifies the need for an entirely new artifactDo NOT use when:
jig.config.md (edit the config directly)Understand what the user is trying to capture before deciding what to build.
Ask these questions one at a time:
These questions drive the decision tree below. Do not ask all four if the first two make the answer obvious.
Based on the interview, route to the correct artifact type:
"I want to enforce a rule"
+-- Universal rule (every file) --> Standards-tier skill
+-- Rule for specific code areas --> Domain-tier or feature-tier skill
+-- Rule checked during review --> Specialist
"I want to capture domain knowledge"
+-- Patterns for a code area --> Domain-tier skill
+-- Patterns for one feature --> Feature-tier skill
"I want to add a workflow step"
+-- New pipeline stage or orchestration --> Workflow-tier skill
+-- Modification to existing stage --> Edit the existing skill
"I want to review code for X"
+-- Pattern-based check (scannable) --> Specialist
+-- Reasoning-based check (requires tracing) --> Logic reviewer pattern
"I want to automate a task"
+-- Triggered by user command --> Agent
+-- Triggered by file edits --> Domain-tier skill
"I just need to change pipeline behavior"
+-- Stage overrides, thresholds, models --> jig.config.md change (no new artifact)
+-- New concern in brainstorming --> Add to Concerns Checklist in jig.config.md
| Intent | Artifact | Location | Schema Reference |
|---|---|---|---|
| Universal rule | Standards-tier skill | team/skills/{name}/SKILL.md | framework/SKILL_SCHEMA.md |
| Domain patterns | Domain-tier skill | team/skills/{name}/SKILL.md | framework/SKILL_SCHEMA.md |
| Feature patterns | Feature-tier skill | team/skills/{name}/SKILL.md | framework/SKILL_SCHEMA.md |
| Pipeline step | Workflow-tier skill | team/skills/{name}/SKILL.md | framework/SKILL_SCHEMA.md |
| Review check (pattern) | Specialist | team/specialists/{name}.md | framework/SKILL_SCHEMA.md (Specialist Schema section) |
| Review check (reasoning) | Logic reviewer pattern | core/skills/review/logic-reviewer.md | Edit existing file |
| Automation | Agent | team/agents/{name}.md | Agent conventions |
| Pipeline config | Config change | jig.config.md | Edit existing file |
| Brainstorm concern | Concerns checklist entry | jig.config.md | framework/CONCERNS_CHECKLIST.md |
Before creating anything, search for existing artifacts that might already cover this.
team/skills/, packs/*/skills/, and core/skills/ for skills with related names, descriptions, or globsteam/specialists/, packs/*/specialists/, and core/specialists/ for specialists covering the same concernteam/agents/, packs/*/agents/, and core/agents/If overlap is found:
| Situation | Action |
|---|---|
| Pattern already covered, well documented | No new artifact needed. Tell the user. |
| Pattern partially covered | Extend the existing artifact instead of creating a new one |
| Related but distinct concern | Proceed with new artifact, note the relationship |
| Same domain, different scope | Proceed, but ensure globs do not overlap excessively |
Create team/skills/{name}/SKILL.md with valid frontmatter:
---
name: {name}
description: >
Use when {specific trigger condition}. {What it helps with}.
tier: {standards | domain | feature | workflow}
globs: # Only for domain and feature tiers
- "{glob-pattern}"
alwaysApply: {true | false} # true only for standards tier
---
Scaffold the body:
# {Skill Title}
**PURPOSE**: {One sentence describing what this skill does.}
**CONFIGURATION**: {What it reads from jig.config.md, if anything.}
---
## When to Use
- {Trigger condition 1}
- {Trigger condition 2}
**Do NOT use when:** {Exclusion conditions}
---
## ALWAYS
- {Non-negotiable rule 1}
- {Non-negotiable rule 2}
## NEVER
- {Anti-pattern 1}
- {Anti-pattern 2}
## Patterns
### {Pattern Name}
{Description, examples, good/bad comparisons}
---
## Common Mistakes
| Mistake | Fix |
|---------|-----|
| {Common error} | {How to avoid it} |
---
## Integration
**Called by:** {Which skills invoke this one}
**Related skills:** {Related skills to cross-reference}
Tier selection guidance:
| Tier | When | Globs | alwaysApply |
|---|---|---|---|
| Standards | Rule applies to EVERY file edit. Very rare -- think twice. | Not needed | true |
| Domain | Patterns for a code area (database, frontend, testing) | Scoped to directories: **/entities/**/*.ts | false |
| Feature | Patterns for one specific feature's code | Narrow paths: **/component-filter/**/* | false |
| Workflow | Pipeline step invoked explicitly | None | false |
Glob guidance:
**/entities/**/*.ts (good) vs **/*.ts (too broad)Create team/specialists/{name}.md with valid frontmatter:
---
name: {name}
description: Reviews {specific concern}
model: {haiku | sonnet | opus}
tier: {fast-pass | full-only}
globs:
- "{glob-pattern}"
severity: {blocking | major | minor}
---
Scaffold the body (this IS the specialist's prompt):
## What to Check
- {Check 1: specific, actionable}
- {Check 2: specific, actionable}
- {Check 3: specific, actionable}
## What to Ignore
- {Exclusion 1: things that look like issues but are not}
- {Exclusion 2: out of scope for this specialist}
## Report Format
For each finding:
- **File**: path:line_number
- **Finding**: {description}
- **Fix**: {actionable suggestion}
If nothing found, respond with exactly: `N/A`
Model selection:
| Model | When | Cost |
|---|---|---|
| haiku | Pattern matching, checklist verification, syntax checks | Lowest |
| sonnet | Moderate reasoning, context-dependent patterns | Medium |
| opus | Deep reasoning, cross-file analysis, subtle bugs | Highest |
Tier selection:
| Tier | When | Runs during |
|---|---|---|
| fast-pass | Critical checks that should block every task | Per-task review (team-dev) + pre-PR |
| full-only | Thorough checks that only need to run once | Pre-PR review only |
Severity selection:
| Severity | When | Impact on review score |
|---|---|---|
| blocking | Security vulnerabilities, data loss risks, broken contracts | Score capped at 4 |
| major | Bugs, performance issues, pattern violations | Score capped at 7 |
| minor | Style suggestions, minor improvements | Score 8-9 |
Create team/agents/{name}.md:
# {Agent Name}
**Trigger**: {What phrase or command activates this agent}
**Purpose**: {What the agent does}
## Instructions
{The agent's prompt -- what it should do step by step}
## Tools Required
- {Tool 1}
- {Tool 2}
Edit jig.config.md directly. Common changes:
## Concerns Checklist with a skill/specialist referenceparallel-threshold, swarm-tiers, etc.scopes listIf the new artifact represents a concern that should be surfaced during brainstorming:
jig.config.md## Concerns Checklist:
- {concern-name}: team/skills/{skill-name}
or for specialists:
- {concern-name}: team/specialists/{specialist-name}
Not every artifact belongs in the checklist. Only add it if it represents a cross-cutting concern that should be explicitly considered during design.
After creating the artifact, verify it will be discovered and loaded correctly:
Frontmatter validation:
name is present, unique, max 64 charsdescription starts with "Use when..." (for skills) or "Reviews..." (for specialists)tier is one of the valid valuesglobs are present for domain/feature tiers, absent for workflow/standardsalwaysApply is true only for standards tierFile location check:
team/skills/{name}/SKILL.md existsteam/specialists/{name}.md existsteam/agents/{name}.md existsOverlap recheck:
nameGlob test (for domain/feature):
Content quality:
reference/ subdirectory)**REQUIRED**: Use {skill-name} for {reason}Report the verification results to the user.
These framework documents define the schemas and systems this skill works with:
| Document | When to Reference |
|---|---|
framework/SKILL_SCHEMA.md | Frontmatter fields, file structure, writing guidelines |
framework/TIER_SYSTEM.md | Tier definitions, choosing the right tier |
framework/DISCOVERY.md | How skills/specialists/agents are found and loaded |
framework/CONCERNS_CHECKLIST.md | How concerns are wired into brainstorming |
framework/PIPELINE.md | Pipeline stages and gate checks |
scaffold/SKILL_TEMPLATE.md | Quick-start template with checklist |
| Mistake | Fix |
|---|---|
| Too-broad globs | **/*.ts matches everything. Scope by directory: **/entities/**/*.ts |
| Missing "Use when..." in description | Descriptions MUST start with "Use when..." for searchability and consistent activation |
| Wrong tier | A skill that only applies when editing database entities is domain, not standards. A skill invoked by command is workflow, not domain. |
| Creating a skill when a config change suffices | If you just need to change a threshold, model, or stage override, edit jig.config.md |
| Creating a specialist for a one-off issue | One-off issues belong as logic reviewer examples. Only create a specialist for patterns (3+ occurrences). |
| Duplicating an existing artifact | Always search before creating. Team artifacts override core artifacts with the same name -- make sure that is intentional. |
| Not wiring into Concerns Checklist | If the artifact represents a cross-cutting design concern, add it to the checklist |
| SKILL.md over 500 lines | Move detailed patterns to reference/ subdirectory. Keep SKILL.md as core rules and quick reference. |
| Specialist prompt too broad | Each specialist should own one narrow concern. If the "What to Check" list exceeds 10 items, consider splitting. |
| Standards tier for "most" files | Standards means EVERY file. If it is "most" files, it is domain tier with broad globs. |
| Forgetting progressive disclosure | Skills over 500 lines need a reference table telling the agent when to load each sub-document |
| No verification after creation | Always run the verification step. A skill with invalid frontmatter or wrong location will not be discovered. |
Called by:
postmortem when a new artifact is needed (not just an edit to an existing one)/extendRelated skills:
review -- specialists created here are discovered by the review swarmbrainstorm -- concerns added to the checklist are surfaced during brainstormingpostmortem -- identifies gaps that lead to new artifacts| Intent | Artifact | Key Decision |
|---|---|---|
| Enforce a universal rule | Standards skill | Are you sure it is EVERY file? |
| Capture domain patterns | Domain skill | Globs scoped to directories, not file types |
| Capture feature patterns | Feature skill | Narrower than domain -- one subsystem |
| Add a pipeline step | Workflow skill | Only loaded on explicit invocation |
| Add a review check (pattern) | Specialist | Model + tier + severity + narrow globs |
| Add a review check (reasoning) | Logic reviewer pattern | Add to existing logic-reviewer.md |
| Automate a task | Agent | Triggered by command or phrase |
| Change pipeline behavior | jig.config.md | No new artifact needed |
| Add brainstorm concern | Concerns checklist | Points to a skill or specialist |
Before committing the new artifact:
be-, fe-, ops-, etc.)framework/TIER_SYSTEM.md)reference/)**REQUIRED**: Use {skill} for {reason}jig.config.md (if applicable)name in the discovery chain (or override is intentional)