All skills
simota avatar

/sigil

@35ffd55
by shingo imotasimota/agent-skills85 stars
15

Designing a repository's project-local operating layer and generating its skills, recipes, workflows, and routing map. Not for global ecosystem agents (Architect) or runtime execution (Nexus).

Use this Skill: https://skilld.dev/gh/simota/agent-skills/sigil

This session only. Nothing lands on disk.

referencemeta-prompting-self-improvement.md

≈796 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Meta-Prompting & Self-Improvement Patterns

Purpose: load this when improving Sigil itself, not during ordinary skill generation. It captures optional self-improvement techniques for ATTUNE, validation, and future evolution.

Contents

  1. Prompt optimization
  2. Self-correction patterns
  3. Context engineering
  4. Automatic rule generation
  5. Feedback loop design
  6. Incremental roadmap

Prompt Optimization

DSPy-Style Optimization

Use a closed loop:

prompt -> run -> evaluate -> refine prompt -> run again

Potential Sigil uses:

  • improve description routing quality
  • compare template variants
  • refine discovery heuristics from outcomes

TextGrad-Style Optimization

Treat review feedback as a natural-language gradient:

initial prompt -> output -> critique -> updated prompt

Use this only when repeated critique clearly improves results.

Self-Correction Patterns

Mistake Ledger

Track recurring failures in a structured log:

## Mistake Ledger

| Date | Failure Pattern | Cause | Fix | Prevention Rule |
|------|-----------------|-------|-----|-----------------|
| YYYY-MM | missing tests | VERIFY skipped | add test check | F-test-required |

Use it to avoid repeating the same generation defects.

Reflection Loop

Generate -> Self-Review -> Identify Issues -> Regenerate

Options:

Variant Cost Use
Self-Refine low default internal review
Cross-Model medium only when another reviewer is available
Multi-Agent high use for high-stakes quality loops

Constitutional Guardrails

Keep a compact rule set for self-review:

  1. Skills MUST mirror project conventions.
  2. Skills MUST NOT introduce security risk.
  3. Skills SHOULD stay easy to load and selective to read.

Context Engineering

Spec-First Pattern

spec -> local rules -> generation -> review -> feedback

Use this when the skill itself is complex or safety-sensitive.

Context Budget

Context window Suggested allocation
~200K tokens rules 5-10K, code 150-180K, output 10-40K
~1M tokens rules 10-20K, code 800-900K, output 80-100K

If a generated skill requires too much inline context, split or externalize detail into reference/.

Automatic Rule Generation

Useful source flows:

  1. existing code -> convention extraction -> skill or CLAUDE.md
  2. CI failures -> recurring failure pattern -> preventive skill
  3. PR review comments -> repeated feedback -> new project rule

Feedback Loop Design

Three levels:

  1. structural quality -> automatic validation
  2. semantic quality -> self-review or external review
  3. practical quality -> ATTUNE over time

Map these back to Sigil:

  • structural quality -> validation-rules.md
  • semantic quality -> recraft / review loop
  • practical quality -> skill-effectiveness.md

Incremental Roadmap

  1. Add Mistake Ledger to the journal.
  2. Run Self-Refine inside VERIFY for weak drafts.
  3. Track weak description activation and propose rewrites.
  4. Measure context cost and recommend skill splitting when needed.

Source: SKILL.md on GitHub

1 warning13d5 checks · Risk SAFE
  • Gen Agent Trust Hub13d

    The skill is a project-local development tool designed to analyze codebase context and generate AI agent skills. It uses shell commands and local file access to detect tech stacks and conventions. While it includes safety guardrails against prompt injection and credential exposure, it possesses an attack surface for indirect prompt injection, where a malicious repository could influence the generation of executable skill instructions or configurations.

  • Socket13d

    No alerts

  • Snyk13d

    Risk: LOW · No issues

  • Runlayer6mo

    2/12 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 35ffd55. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 2 weeks ago

README badge

README badge for simota/agent-skills/sigil