skill-comply
Measure whether agents actually follow a skill, rule, command, or agent definition by deriving expected behaviors, running representative scenarios, and comparing observed action timelines against the spec. Use after adding or changing instructions, before publishing skills, or when rules appear to be ignored.
What this skill does
# Skill Comply Test whether an instruction artifact changes agent behavior in realistic conditions. The goal is not to prove that the file is well-written; it is to measure whether an agent follows it when the user prompt is supportive, neutral, or competing. ## Contract Inputs: - Path to a `SKILL.md`, rule file, command, agent definition, or instruction doc - Optional scenario list, trace logs, target harness, and pass threshold Outputs: - Expected behavior spec - Scenario prompts by strictness level - Compliance scores and failure categories - Action timeline with matched, missing, reordered, or extra steps Creates/Modifies: - May create a local report file when requested - Does not change the target skill or rule unless asked to fix findings External Side Effects: - May run local agent commands or tests when explicitly available - No network calls or production writes by default Confirmation Required: - Before running costly model trials, modifying the target artifact, or writing reports outside the repo Delegates To: - `skill-validator` for frontmatter/spec checks - `skill-auditor` for portfolio-level duplicate and quality audits - `evaluation` for broader agent eval design ## When to Use - A new skill, rule, command, or agent definition was added. - An instruction was rewritten and behavior needs regression testing. - The agent keeps ignoring a known rule. - A maintainer wants a pass/fail signal before publishing an instruction pack. - A rule works only when the user explicitly repeats it, but not in normal tasks. ## Core Idea Compliance has three layers: 1. **Spec extraction**: convert the instruction artifact into observable steps. 2. **Scenario pressure**: test supportive, neutral, and competing prompts. 3. **Timeline matching**: compare observed actions to the expected sequence. Measure behavior, not prose quality. ## Process ### 1. Derive the Expected Behavior Read the target artifact and extract: - trigger conditions - required actions - forbidden actions - ordering constraints - confirmation gates - expected output shape - side effects that must or must not happen Represent the spec as a short table: | Step | Required Behavior | Evidence Type | Required Order | | --- | --- | --- | --- | | 1 | Inspect existing examples before editing | search/read action | before write | | 2 | Preserve unrelated user changes | diff/status check | before final | ### 2. Build Scenarios Create three prompts: - **Supportive**: explicitly asks for the workflow. - **Neutral**: asks for the task but does not mention the instruction. - **Competing**: adds pressure that often causes skipping, such as urgency, ambiguity, or a tempting shortcut. For destructive or side-effecting skills, use dry-run scenarios against fixture files or synthetic repos. Do not create real external side effects for a compliance test. ### 3. Execute or Simulate Use the strongest safe evidence available: - actual tool/action trace from a sandbox run - local command logs - saved transcript - reviewer reconstruction from a completed session - dry-run plan when execution is not safe Do not count a step as compliant because the final answer claims it happened. Require an action trace, command output, file diff, or visible artifact. ### 4. Grade the Timeline Classify each expected behavior: | Result | Meaning | | --- | --- | | Matched | Required behavior happened with adequate evidence | | Missing | Required behavior did not happen | | Reordered | Behavior happened, but too late to matter | | Weak | Behavior happened superficially or without enough evidence | | Violated | A forbidden action happened | Compute a simple score: ```text score = matched / required critical violation = automatic fail ``` Use judgment for ordering and gates. A late safety check after writing code does not satisfy a pre-edit investigation requirement. ## Failure Categories - **Trigger failure**: the skill or rule did not activate in neutral wording. - **Ordering failure**: the right action happened after the risky action. - **Evidence failure**: the agent claimed compliance without observable proof. - **Scope failure**: the agent followed the rule for one file but not the full surface. - **Conflict failure**: another instruction overrode the rule. - **Overhead failure**: the rule caused excessive work for low-risk tasks. ## Output Format ```markdown Compliance result: 2/3 scenarios passed. Neutral prompt failed because the agent edited before checking existing patterns. | Scenario | Score | Verdict | Main Failure | | --- | --- | --- | --- | | Supportive | 5/5 | Pass | - | | Neutral | 3/5 | Fail | Missing pre-edit example search | | Competing | 4/5 | Pass | Weak final evidence | ## Timeline Findings - Missing: [step] [evidence] - Reordered: [step] [why order matters] ## Recommended Fix 1. Tighten the trigger phrase in `description`. 2. Move the precondition into the Contract. 3. Add a short output checklist. ``` ## Promotion Guidance When a step repeatedly fails: - Make the trigger clearer if the skill is not selected. - Move mandatory behavior into the Contract if it is buried in prose. - Split the skill if it has multiple unrelated workflows. - Convert fragile mandatory behavior into a hook, script, or command only when the current platform can actually enforce it. - Add examples only when the failure is ambiguity, not lack of enforcement. ## Anti-Patterns - Testing only prompts that name the skill. - Treating final-answer claims as proof. - Running live destructive actions to test a safety rule. - Using a single scenario to certify a broad workflow. - Fixing compliance by adding long repetitive wording instead of clarifying the trigger, contract, or gate.
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.