validate-component
Validate a single AIWG component (skill, agent, or command) for completeness and correctness
What this skill does
# Validate Component
You check a single AIWG component — a skill, agent, or CLI command — for completeness and correctness, then produce a structured pass/fail report with specific gaps listed.
## Triggers
- "validate this skill" → check the skill in the current directory or named path
- "is this component complete" → run completeness check
- "check this agent" → validate agent frontmatter and manifest registration
- "validate component at <path>" → validate the named path
- "is this command wired up correctly" → check CLI command completeness
- "pre-PR check on this skill" → run validate-component
## Trigger Patterns Reference
| Pattern | Example | Action |
|---------|---------|--------|
| Validate skill | "validate this skill" | Run skill completeness checks |
| Validate agent | "check this agent definition" | Run agent completeness checks |
| Validate command | "is this command wired up" | Run command completeness checks |
| Path-specific | "validate component at agentic/code/addons/my-addon/skills/my-skill" | Validate at given path |
| Pre-PR | "pre-PR check on this component" | Run all applicable checks |
## Process
1. **Identify component type and path**:
- If no path is given, check the current working directory or the most recently edited file
- Detect type from directory structure:
- Path contains `skills/<name>/SKILL.md` → skill
- Path contains `agents/<name>.md` or `agents/<name>/` → agent
- Component name appears in `src/extensions/commands/definitions.ts` → command
2. **Run type-appropriate checks**:
**For a Skill**:
- Read the `SKILL.md` file
- Check: `description:` field present in YAML frontmatter
- Check: `# Title` section present
- Check: `## Behavior` or `## Process` section present
- Check: At least one `## Examples` entry
- Find the parent addon's `manifest.json` (walk up directory tree)
- Check: Skill name listed in `manifest.json` `skills` array
- Check: File lives in `agentic/code/` (not in a provider deployment directory)
- If SKILL.md contains `executedViaSkillRunner: true` reference: check for circular CLI call pattern
- **Full link classification check** (see Link Classification below)
**For an Agent**:
- Read the agent `.md` file
- Check: YAML frontmatter block present
- Check: `name:` field in frontmatter
- Check: `description:` field in frontmatter
- Check: `model:` field in frontmatter
- Check: `tools:` field in frontmatter
- Find parent addon's `manifest.json`
- Check: Agent listed in `manifest.json` `agents` array
- Check: File lives in `agentic/code/`
- **Full link classification check** (see Link Classification below)
**Link Classification** (applies to all component types):
Extract every `@<path>` reference from the file and classify:
| Pattern | Result | Message |
|---------|--------|---------|
| `@$AIWG_ROOT/<path>` | PASS | AIWG core ref (install-relative) |
| `@$TOKEN/<path>` — TOKEN set in env | PASS | Registered corpus token |
| `@$TOKEN/<path>` — TOKEN NOT in env | WARN | `env var TOKEN not set; add to .env or export` |
| `@.aiwg/<path>` — path in Tier 1/2 allowlist | PASS | Normalized project memory |
| `@.aiwg/<path>` — not in any `memory.creates` | FAIL | `non-normalized .aiwg/ path — repo-local only` |
| `@.claude/<path>` | FAIL | `deployment target — forbidden in distributable source` |
| `@agentic/code/<path>` | WARN | `legacy bare ref — migrate to @$AIWG_ROOT/agentic/code/` |
| `@src/<path>` | WARN | `legacy bare ref — migrate to @$AIWG_ROOT/src/` |
| `@docs/<path>` | WARN | `legacy bare ref — migrate to @$AIWG_ROOT/docs/` |
| `@tools/<path>` | WARN | `legacy bare ref — migrate to @$AIWG_ROOT/tools/` |
| Relative path within component | PASS | Local ref |
Build the Tier 2 allowlist by reading all `manifest.json` files in `agentic/code/` and collecting `memory.creates[*].path` values. Combine with Tier 1 (`.aiwg/AIWG.md`, `.aiwg/frameworks/`).
**For a CLI Command**:
- Read `src/extensions/commands/definitions.ts`
- Check: Command entry exists in definitions
- Check: Command has either `executedViaSkillRunner: true` OR a handler entry
- If `executedViaSkillRunner: true`: find the associated SKILL.md and verify it does not contain `aiwg <command-name>` in any bash block
- If handler expected: check `src/cli/handlers/` for the handler file and registration in `allHandlers`
3. **Compile report**:
Format results as a structured report:
```
Component Validation: <component-name> (<type>)
Path: <absolute-or-relative-path>
Checks:
PASS description frontmatter present
PASS title section present
PASS behavior section present
FAIL no examples section found
PASS listed in manifest.json
FAIL not in agentic/code/ (found in .claude/skills/ — placement violation)
WARN @.aiwg/planning/my-design.md is not a normalized path (repo-local only)
Result: FAIL — 2 issues found
Required actions:
1. Add ## Examples section to SKILL.md
2. Move SKILL.md to agentic/code/addons/<addon>/skills/<name>/SKILL.md
then re-deploy with: aiwg use <addon>
```
4. **Surface the report** to the user with the result line prominent.
## Examples
### Example 1: Valid skill
**User**: "Validate the doctor skill"
**Action**: Read `agentic/code/addons/aiwg-utils/skills/doctor/SKILL.md`, find parent manifest, run all checks.
**Output**:
```
Component Validation: doctor (skill)
Path: agentic/code/addons/aiwg-utils/skills/doctor/SKILL.md
Checks:
PASS description frontmatter present
PASS title section present
PASS behavior section present
PASS examples section present
PASS listed in aiwg-utils manifest.json
PASS lives in agentic/code/
Result: PASS — all checks passed
```
### Example 2: Incomplete skill with placement violation
**User**: "validate component at .claude/skills/my-new-skill"
**Action**: Read SKILL.md, check for completeness, check placement.
**Output**:
```
Component Validation: my-new-skill (skill)
Path: .claude/skills/my-new-skill/SKILL.md
Checks:
PASS description frontmatter present
FAIL no ## Behavior or ## Process section
FAIL no ## Examples section
FAIL placement violation: .claude/skills/ is a deployment target
FAIL not found in any manifest.json
Result: FAIL — 4 issues found
Required actions:
1. Add ## Behavior section to SKILL.md
2. Add ## Examples section to SKILL.md
3. Move to agentic/code/addons/<your-addon>/skills/my-new-skill/SKILL.md
4. Add "my-new-skill" to your addon's manifest.json skills array
5. Run `aiwg use <addon>` to deploy
```
### Example 3: Circular skill-executed command
**User**: "check the my-command command"
**Action**: Read `definitions.ts`, find `executedViaSkillRunner: true`, read associated SKILL.md, search for `aiwg my-command`.
**Output**:
```
Component Validation: my-command (command)
Path: src/extensions/commands/definitions.ts
Checks:
PASS definition entry present in definitions.ts
PASS executedViaSkillRunner: true (no TypeScript handler required)
FAIL circular call detected: SKILL.md contains "aiwg my-command" in bash block (line 47)
Result: FAIL — 1 issue found
Required actions:
1. Rewrite SKILL.md to perform work directly via Read/Write/Bash/Task tools
without calling back into `aiwg my-command`
See: agentic/code/addons/aiwg-dev/rules/no-circular-skill-calls.md
```
## References
- @$AIWG_ROOT/agentic/code/addons/aiwg-dev/rules/component-completeness.md — Full completeness requirements
- @$AIWG_ROOT/agentic/code/addons/aiwg-dev/rules/skill-placement.md — Placement requirements
- @$AIWG_ROOT/agentic/code/addons/aiwg-dev/rules/no-circular-skill-calls.md — Circular call detection
- @$AIWG_ROOT/agentic/code/addons/aiwg-dev/rules/aiwg-dir-reference-contract.md — Normalized .aiwg/ path contract
- @$AIWG_ROOT/src/extensions/commands/definitions.ts — Command definition reRelated in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.