.claude/skills/ai-assets/SKILL.md
Create, modify, validate, and analyze Claude Code AI assets (rules, workflows, skills, hooks, CLAUDE.md) with prompt engineering discipline and dependency chain awareness
npx skillsauth add avav25/ai-assets ai-assetsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Guides creation, modification, and validation of Claude Code AI assets. Every asset is a prompt for an LLM — apply prompt engineering rigor throughout.
Apply Agent(prompt-engineer) role for all steps below.
Clarify with the user:
create | modify | validate | analyzerule | workflow | skill | hook | agents-mdIf the user's intent is ambiguous, ask before proceeding.
Read and internalize before making any changes:
framework-summary.md — Section 2.x matching the asset type. This is the authoritative source for Claude Code capabilities, formats, and constraintsrules/global-rules.md — language, file size limits, cross-reference rulesCLAUDE.md — naming, frontmatter, source management, interconnection patternscontext-engineering skill — context stack model, production checklists, reference templates. Required reading for AI-facing assetsSearch the entire asset tree for references to/from the target. Build a dependency map:
[target asset]
├─ OUT (this asset references):
│ ├─ /workflow-name → file path [OK | MISSING]
│ ├─ @skill-name → file path [OK | MISSING]
│ └─ rule-name → file path [OK | MISSING]
├─ IN (referenced by):
│ ├─ asset-a.md (line N)
│ └─ asset-b.md (step N)
└─ HOOKS (enforced by):
└─ script.py → hook event
Search patterns: /asset-name, @asset-name, ../type/path.md, prose mentions in integration sections.
Flag issues:
For analyze operations — present the full map and stop here. For other operations — use the map to inform subsequent steps.
Before authoring, evaluate whether the target asset needs companion assets to be effective:
/sub-workflow)@skill-nameIf companion assets are needed, create them as part of the same operation. Apply this entire workflow to each companion asset recursively (steps 2–8).
Apply the asset-type spec from framework-summary.md Section 2.x:
<rule_spec>
trigger ((auto-loaded) | (agent) | glob | manual), descriptiondescription is the activation signal for (agent) — write it as a keyword-rich, specific summary. Too broad = false positives. Too narrow = missed activationsglob for file-type-specific; manual for on-demand roles/expertise<workflow_spec>
description/sub-workflow to avoid duplication across workflows<skill_spec>
skill-name/SKILL.md + resource filesname, descriptiondescription drives progressive disclosure — optimize for automatic activation by Claude Code<hook_spec>
pre/PostToolUse (Read), pre/PostToolUse (Write|Edit), pre/PostToolUse (Bash), pre/PostToolUse, UserPromptSubmit, Stop, WorktreeCreate<agents_md_spec>
Design role rules for composable specialization via Claude Code's agent/skill system:
software-engineer.role.mdglob): Stack-specific patterns. (agent) for project context matching; glob for file-type bindingmanual): User forces via @role-nameRouting: CLAUDE.md declares tech stack → (agent) roles with matching description keywords activate automatically → glob activates on file patterns → multiple roles compose (base + specialization)
Composability rules:
description must clearly state scope to avoid activation overlapEvery asset is a prompt for an LLM. Apply Agent(prompt-engineer) Reasoning Protocol to evaluate each asset:
Apply context-engineering skill principles — every asset is context that enters Claude Code's window:
Rules ((agent)):
description contain keywords users naturally use when the rule should activate?Workflows:
/name) and skill refs (@name) correct?Skills:
description trigger progressive disclosure for the right tasks only?Rules (roles):
This step is non-optional. Run the full checklist on every create or modify operation to prevent dependency corruption, broken cross-references, and size violations.
Format: correct frontmatter, ≤12K chars, English, naming convention per CLAUDE.md
References: all /workflow, @skill, and relative paths resolve. No absolute paths. Cross-references updated
Prompt quality: Step 6 checks passed, description activation-appropriate, no secrets/PII, behavioral test passes
Context engineering: maps to context stack layer, no lost-in-the-middle, policy/knowledge separated
Dependency chain: no broken refs, asset reachable, no collateral damage, companions validated
development
Use this skill when running the recurring (daily) knowledge-base rescan for a repo that already has knowledge/.knowledge-sync.yml — the main-thread dispatcher that reads the config, computes the git delta since last_scanned_sha, maps changed paths to affected doc areas, early-exits cheaply when nothing changed, then fans out one Agent(content-writer) per affected area, applies the propose/direct update policy, advances the baseline only on success, and writes an L4 run log — all with the G1 untrusted-content choke-point, secret-scan, deny-list, and budget controls woven in. For first-time setup use /knowledge-sync-init.
development
Use this skill when bootstrapping scheduled knowledge-base sync for a repo that has no knowledge/.knowledge-sync.yml yet — to run one-time setup that detects the knowledge_root from CLAUDE.md/AGENTS.md, maps doc areas to source globs, records opt-in external sources (Linear/Notion/WebFetch, all disabled by default), captures a baseline last_scanned_sha, sets the per-area update policy, generates or seeds knowledge/CONVENTIONS.md, provisions the L4 memory dir, and offers to register the daily routine. Routes ongoing recurring sync operations to /knowledge-sync.
tools
Use this skill when bootstrapping a target repository to be ai-skills-aware — on the first run of any ai-skills workflow in a fresh repo, when adopting the ai-skills plugin in an existing repo, or after upgrading to a plugin version that adds new memory paths or templates, including when the user does not say "init" but asks to "set up" or "onboard" the repo — to detect codebase type, create CLAUDE.md + AGENTS.md scaffolding, initialize the .ai-skills-memory/ directory tree from L1 templates, and configure .gitignore. Idempotent — safe to re-run. Accepts `--codebase-type <type>` and `--overwrite`. Not for re-initializing only memory — use `/memory-init` instead.
tools
Use this skill when extending, repairing, or improving plugin assets, when ingesting a `/feedback` report as a fix-cycle backlog, or when you do not remember which lower-level command is right for the job — the umbrella workflow for ai-skills plugin-asset authoring and maintenance: creating, auditing, fixing, improving, refactoring, and migrating skills, agents, rules, hooks, prompts, schemas, and rubrics inside the plugin. Auto-classifies the request, loads the right knowledge skills (`@prompt-engineering`, `@context-engineering`, `@team-protocols`), and spawns the right subagents (`prompt-engineer`, `system-architect`, `python-engineer`, `software-engineer`, `qa-engineer`, `eval-judge`) via the `Agent` tool.