agentleFS
frankxaifrankxai/Starlight-Intelligence-System/skills/foundry/skill-forge/SKILL.md

skill-forge

Skill10 starsChanged 3 months agoMITView on GitHub

Forge a reusable, portable skill from a proven workflow or capability brief. Use when the work needs repeatable instructions, triggers, guardrails, and evidence tests but does not need a persistent autonomous identity.

26 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 21 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not use it when the work requires persistent decision rights, a distinct durable memory scope, or an ongoing trigger owned by an …

    line 19
  2. Distinctive:

    Ask only for missing information that materially changes the capability.

    line 25
  3. Distinctive:

    Write concrete positive triggers and at least one negative trigger.

    line 31
  4. Distinctive:

    Keep one skill responsible for one coherent outcome.

    line 32
  5. Distinctive:

    Avoid broad adjectives as requirements.

    line 33
  6. Very specific:

    Keep SKILL.md frontmatter limited to name and description.

    line 37
  7. Very specific:

    Foundry runtime available: use this mode only when tools/foundry/cli.mjs and foundry/contracts/ exist in the current workspace.

    line 39
  8. Distinctive:

    Run this step only in Foundry runtime mode.

    line 51
  9. Distinctive:

    Run static and artifact checks first.

    line 52
  10. Distinctive:

    Keep manual and judge tests pending until independent evidence exists.

    line 54

“Common” is measured: kept by at least 6 in 10 of the 21 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill Forge

Outcome

Design one narrow capability as a portable Agent Skills package with explicit activation boundaries, then compile and prove it when a Foundry runtime is available.

Use this skill when

  • A successful workflow should become reusable.
  • A user asks to create, improve, or package a skill.
  • A repeated task needs stable instructions, tools, guardrails, or evaluation.
  • The capability should work in ChatGPT, Codex, or a skills-based plugin.

Do not use it when the work requires persistent decision rights, a distinct durable memory scope, or an ongoing trigger owned by an autonomous actor. Use $agent-forge only after proving one of those boundaries.

Procedure

  1. Define the decision contract.
    • Capture the objective, audience, deliverables, stakes, reversibility, permissions, constraints, and completion tests.
    • Ask only for missing information that materially changes the capability.
  2. Discover before creating.
    • Inspect the capability graph and existing skills.
    • Reuse or depend on an existing capability when it already owns the behavior.
    • Record required, preferred, and forbidden capabilities explicitly.
  3. Bound activation.
    • Write concrete positive triggers and at least one negative trigger.
    • Keep one skill responsible for one coherent outcome.
    • Avoid broad adjectives as requirements; translate them into observable gates.
  4. Author the Skill Pack.
    • Give every procedure step a proof obligation.
    • Declare inputs, outputs, dependencies, tool policy, memory policy, deployment targets, and optional taste profile.
    • Keep SKILL.md frontmatter limited to name and description.
  5. Select the execution mode.
    • Foundry runtime available: use this mode only when tools/foundry/cli.mjs and foundry/contracts/ exist in the current workspace. Validate the Task Envelope and Skill Pack, then run:

      node tools/foundry/cli.mjs forge \
        --envelope <task-envelope.json> \
        --pack <skill-pack.json> \
        --out <package-directory>
    • Portable skills-only install: read references/portable-contracts.md, then author the Task Envelope, Skill Pack, and proposed SKILL.md directly with those field names. Mark compilation and proof pending-runtime; do not invent paths, commands, or receipts. Give the operator the command above as an optional handoff for a later SIS workspace run.
  6. Prove.
    • Run this step only in Foundry runtime mode.
    • Run static and artifact checks first.
    • Execute command tests only when the Task Envelope permits the executable.
    • Keep manual and judge tests pending until independent evidence exists.
    • Run:

      node tools/foundry/cli.mjs prove <package-directory>
  7. Promote only from receipts.
    • validated: every required lane passed.
    • experimental: required evidence is still pending.
    • revise: a required test failed.
    • rejected: a critical security test failed.

Quality gates

  • The skill is narrower than an agent and more reusable than a one-off prompt.
  • Trigger examples distinguish when to use and when not to use it.
  • The procedure is executable without hidden context.
  • Claims about research, tests, writes, or deployment have receipts.
  • The producer is not the sole judge for a required taste lane.

Return

Return the Task Envelope, Skill Pack, proposed skill, execution mode, and unresolved proof. Include a compiled package path and Evidence Receipt only when those artifacts were actually produced.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.