agentleFS
LazyAutomatarLazyAutomatar/spec-reuse/skills/save-feature/SKILL.md

save-feature

Skill0 starsChanged 2 days agoMITView on GitHub

Extract a newly built reusable feature, UI component, service, or automation script from the current workspace into a standardized Features/ catalog entry (SPEC.md + sanitized references/ + CATALOG.md). Use when the user invokes the save-feature skill (/save-feature or $save-feature) or agrees to save a reusable implementation.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this workflow to package a working, tested implementation from the current repository into a reusable catalog building block.

    line 8
  2. Very specific:

    If no CATALOG.md exists yet, create Features/CATALOG.md using CATALOG.template.md.

    line 13
  3. Very specific:

    Check existing entries in CATALOG.md to determine the next sequential ID (e.g., 01-<slug>, 02-<slug>).

    line 14
  4. Distinctive:

    Remove Secrets & Personal Data: Never copy API keys, tokens, passwords, internal hostnames, or user-specific local paths.

    line 20
  5. Very specific:

    Create Features/<id>/SPEC.md following SPEC.template.md, documenting:

    line 25
  6. Very specific:

    Add a new row to the routing table in CATALOG.md with the ID, folder, trigger aliases, target stack, required parameters, and recommended …

    line 33

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

save-feature — Save a Reusable Feature to the Catalog

Use this workflow to package a working, tested implementation from the current repository into a reusable catalog building block.

Step 1: Locate or Initialize the Catalog

Resolve the catalog root ($FEATURE_CATALOG_PATH, ./Features/, ./.agents/features/, or ../Features/):

  • If no CATALOG.md exists yet, create Features/CATALOG.md using CATALOG.template.md.
  • Check existing entries in CATALOG.md to determine the next sequential ID (e.g., 01-<slug>, 02-<slug>).

Step 2: Extract & Sanitize Reference Blueprints

Copy the core implementation files into Features/<id>/references/:

  1. Strip App-Specific Coupling: Replace project-specific namespaces, app names, repo URLs, and paths with clear placeholders (e.g., <TargetNamespace>, <AppName>, <GitHubRepo>).
  2. Remove Secrets & Personal Data: Never copy API keys, tokens, passwords, internal hostnames, or user-specific local paths.
  3. Keep It Minimal: Include only the reusable building-block files (or concise snippet .md files for wiring hooks), not unrelated business logic.

Step 3: Author SPEC.md

Create Features/<id>/SPEC.md following SPEC.template.md, documenting:

  • Purpose & trigger aliases (keywords that should auto-match this feature later)
  • Required target parameters (AppName, namespaces, storage paths, etc.)
  • Architecture & file-by-file wiring instructions
  • Security/invariants & verification test checklist

Step 4: Update CATALOG.md

Add a new row to the routing table in CATALOG.md with the ID, folder, trigger aliases, target stack, required parameters, and recommended pairings.

Step 5: Report

Share clear links or paths to the new SPEC.md, references/, and updated CATALOG.md.

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.