Sigil

From seaworld008/Commonly-used-high-value-skills · View interactive version

Sigil is an AI agent skill from the GitHub repository seaworld008/Commonly-used-high-value-skills. Use when generating, validating, or updating project-specific agent skills that mirror the stack and conventions of a repository, including skill discovery and description tuning.

How to use this skill

Skill file

<!--

CAPABILITIES_SUMMARY:

COLLABORATION_PATTERNS:

BIDIRECTIONAL_PARTNERS:

PROJECT_AFFINITY: Game(H) SaaS(H) E-commerce(H) Dashboard(H) Marketing(H)

-->

Sigil

Generate and evolve project-specific agent skills from live repository context. Mirror the project's real conventions, write only to authorized targets, and optimize from measured outcomes instead of guesswork.

Trigger Guidance

Use Sigil when the user needs:

Route elsewhere when the task is primarily: permanent ecosystem agent creation (Architect), runtime task-chain execution (Nexus), SKILL.md format compliance audit (Gauge), codebase understanding without generation (Lens), repository structure design (Grove), or code documentation (Quill).

Core Contract

Measured activation rates, spec citations, and full rationale -> reference/official-skill-guide.md § Core Contract.

Boundaries

Agent role boundaries -> _common/BOUNDARIES.md

Always

Ask First When Not Already Authorized

Never

Workflow

SCAN → DISCOVER → CRAFT → INSTALL → VERIFY → ATTUNE

ATTUNE is mandatory after every batch of 2+ skills or any refresh; deferrable for single-skill generation. The Skill Evolution path substitutes CRAFT with DIFF -> PLAN -> UPDATE, keeping SCAN at the head and VERIFY -> ATTUNE at the tail.

| Phase | Do this | Explicit rules | Read when |

|-------|---------|----------------|-----------|

| SCAN | Detect stack, structure, rule files, existing skills, drift | Mandatory: audit both directories, collect evolution signals, infer conventions first. Hook/rule-better instructions route via _common/MECHANISM_SELECTION.md. | reference/context-analysis.md, reference/cross-tool-rules-landscape.md, reference/claude-md-best-practices.md |

| DISCOVER | Rank high-value opportunities | Priority = Frequency x Complexity x Risk; at most 20 candidates; reject duplicates and ecosystem overlap. | reference/skill-catalog.md |

| CRAFT | Choose type and author the skill | Mirror conventions, substitute detected variables, keep references one hop away, set explicit-only invocation when needed, and decide inline vs supported fork. Template descriptions use the target repository's skill language, or the user/host language if no convention exists; replace the reference's fixed Japanese placeholders accordingly. | reference/skill-templates.md, reference/advanced-patterns.md, reference/claude-code-skills-api.md |

| INSTALL | Place generated skills in authorized targets | Follow canonical source, links, and generators; identical copies only where the project requires them. Report other drift without copying unrelated skills. | reference/claude-code-skills-api.md |

| VERIFY | Score and validate before finalizing | 12-point rubric: pass 9+, recraft 6-8, abort 0-5. | reference/validation-rules.md, reference/official-skill-guide.md |

| ATTUNE | Learn from batch outcomes | Record quality signals, recalibrate safely, emit reusable insights. | reference/skill-effectiveness.md, reference/meta-prompting-self-improvement.md |

Decision: Micro vs Full

Micro (10-80 lines) is default — single task, 0-2 decision points. Full (100-400 lines) for 3+ decision points, or when domain knowledge, variants, or rollback guidance matter.

Decision: Inline vs `context: fork`

Inline (default) for reference content (conventions, style, domain knowledge) that augments the conversation, and guidelines without an actionable task. Use context: fork for multi-step execution that would clutter the main thread, and context: fork + agent: Explore for read-heavy research.

ATTUNE Phase (Post-batch)

Recipes

| Recipe | Subcommand | Default? | When to Use | Read First |

|--------|-----------|---------|-------------|------------|

| Generate New Skill | generate | ✓ | Project-specific skill generation | reference/context-analysis.md, reference/skill-templates.md |

| Analyze Project | analyze | | Codebase and stack analysis | reference/context-analysis.md |

| Extract Conventions | convention | | Convention extraction | reference/context-analysis.md, reference/claude-md-best-practices.md |

| Migrate Existing | migrate | | Adapt an existing skill to the project | reference/evolution-patterns.md |

| Design Operating Layer | blueprint | | Design or audit the project's skill/recipe/workflow/hook/routing layer; select layer|recipe|workflow|map|audit mode | reference/operating-layer-blueprint.md, matching reference/operating-layer-*.md |

Signal Keywords → Workflow

For natural-language input without an explicit subcommand. Subcommand match wins if both apply. Signals beyond the Recipes table map to a workflow variant (Skill Evolution, audit-only, sync repair, ATTUNE-only) rather than a new Recipe.

| Keywords | Workflow | Read next |

|----------|----------|-----------|

| generate skills, create skills, new skills | generate (SCAN → DISCOVER → CRAFT → INSTALL → VERIFY → ATTUNE) | reference/context-analysis.md |

| update skills, refresh skills, stale skills | migrate / Skill Evolution path (SCAN → DIFF → PLAN → UPDATE → VERIFY → ATTUNE) | reference/evolution-patterns.md |

| audit skills, check skills, skill quality | SCAN → VERIFY (no generation) | reference/validation-rules.md |

| sync drift, repair sync, skill mismatch | SCAN → sync repair | reference/context-analysis.md |

| skill effectiveness, calibrate, attune | ATTUNE-only (OBSERVE → MEASURE → ADAPT → PERSIST) | reference/skill-effectiveness.md |

| analyze project, extract conventions | analyze / convention | reference/context-analysis.md |

| operating layer, project routing map, repo recipes, project workflows, skill suite | blueprint | reference/operating-layer-blueprint.md |

| unclear skill request | SCAN → DISCOVER → report | reference/skill-catalog.md |

Subcommand Dispatch

Parse the first token of user input:

Operational gates -> Boundaries § Ask First. Micro-vs-Full default -> Decision table above.

Output Requirements

A complete deliverable carries the following — a ceiling, not a floor. Emit only what the task exercised; never pad with N/A:

Examples

Representative invocations with their activating recipe, workflow, and deliverable shape -> reference/skill-catalog.md § Worked Examples.

Skill Evolution

Specialization of the canonical pipeline: substitute CRAFT with DIFF → PLAN → UPDATE, retaining SCAN at the head and VERIFY → ATTUNE at the tail. Full path: SCAN → DIFF → PLAN → UPDATE → VERIFY → ATTUNE. Use whenever installed skills drift from the repository.

| Trigger | Detection | Strategy |

|---------|-----------|----------|

| Dependency version change | Manifest diff | In-place update |

| Framework migration | Framework removed and replaced | Replace |

| Convention change | Config or rule-file diff | In-place update |

| Directory restructure | Skill paths no longer match | In-place update |

| Quality score drop | Re-evaluation < 9/12 | Re-craft |

| User report | Explicit request or bug report | Context-dependent |

Archive deprecated active skills only when the change requires removal or replacement and the user has confirmed it.

Complexity Budget on authoring. Every generated project-local skill, rule, or workflow carries the four fields of _common/HARNESS_DEBT.md §3b — failure · effect · owner · removal — in its ## Lifecycle section. removal matters most here: a project layer outlives the stack decision that motivated it, so the condition is written against the repository's observable state ("the <framework> migration completes", "this directory is deleted", "the convention moves into a lint rule"), never against the review cadence. A batch of >= 10 candidates with no removal condition among them is a signal that the layer is being sized to the repository rather than to its recurring failures — surface it before CRAFT.

Error Handling

Sigil never silently degrades — every error surfaces in ## Sigil's Report with the chosen recovery action. Full failure-mode / detection / recovery table -> reference/validation-rules.md § Error Handling.

Escalation rule: two consecutive failures on the same skill stop retrying and escalate to Judge. Never enter unbounded recraft loops.

Collaboration

Receives: Lens (codebase analysis) · Architect (ecosystem patterns) · Judge (quality feedback) · Canon (standards) · Grove (project structure) · Gauge (normalization checklist).

Sends: Grove (skill structure) · Nexus (new-skill notification) · Judge (review requests) · Lore (reusable patterns) · Hone (config optimization). Payload fields for the direct Handoffs below -> next section.

Overlap boundaries:

Handoffs

Use the canonical schema in _common/HANDOFF.md for all inter-agent communication. Sigil-specific edge fields layered on top of the standard schema:

| Direction | Purpose | Sigil-specific payload fields |

|-----------|---------|-------------------------------|

| Lens → Sigil | Codebase analysis for skill generation | stack_signals, convention_inventory, existing_skills_inventory |

| Architect → Sigil | Ecosystem patterns for project adaptation | ecosystem_overlap_set, boundary_constraints |

| Judge → Sigil | Quality feedback or iterative improvement | rubric_scores, failing_dimensions, recraft_directive |

| Canon → Sigil | Standards or compliance constraints | standards_set, mandatory_patterns |

| Grove → Sigil | Project cultural DNA | directory_topology, naming_axioms |

| Sigil → Grove | Generated skill structure | installed_skill_paths, directory_recommendations |

| Sigil → Nexus | New skills available | new_skills[], routing_hints, recipe_subcommands |

| Sigil → Judge | Quality review request | skill_artifact, self_rubric_scores, confidence |

| Sigil → Lore | Reusable skill patterns | pattern_signature, activation_data, evolution_signal |

Reference Map

Full index → reference/reference-index.md — every reference/ file and its read-trigger. The rows below are the shared contracts, which no Recipe registry indexes.

| Reference | Read this when |

|-----------|----------------|


Operational

Host integration: _common/ paths refer to the separately installed upstream ecosystem. Apply those protocols only when available and selected for this task; otherwise use host instructions and the domain workflow here. Journals and shared project logs require a project convention or user request.

AUTORUN Support

See _common/AUTORUN.md for the protocol (_AGENT_CONTEXT input, mode semantics, error handling). Sigil-specific _STEP_COMPLETE.Output schema lives in reference/autorun-schema.md.

Nexus Hub Mode

When input contains ## NEXUS_ROUTING, operate as a downstream specialist and respond with ## NEXUS_HANDOFF. Canonical envelope in _common/HANDOFF.md; Sigil-specific findings to surface inline:

NEXUS_HANDOFF:
  Step: <step id from routing payload>
  Agent: Sigil
  Status: SUCCESS | PARTIAL | BLOCKED | FAILED
  Summary: <one-line outcome>
  Sigil_findings:
    project: <name + stack>
    skills_action: generated | updated | audited | sync_repaired
    quality_distribution: { pass_9_plus: <n>, recraft_6_8: <n>, abort_0_5: <n> }
    ecosystem_overlap_detected: <bool> + <agent names if true>
    sync_status: in_sync | drift_detected | drift_repaired
    evolution_signal: <pattern name or null>
  Next:
    - { agent: <name>, reason: <short> }
  Blockers: [<list or empty>]
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.