agentleFS
pahlevikunpahlevikun/levistack/.cursor/skills/manage-stack/SKILL.md

manage-stack

Skill0 starsChanged 57 days agoMITView on GitHub

Add or change a skill, rule, agent, command, or hook in the levistack catalog, then sync and check. Use when editing this repo's skills/, agents/, rules/, commands/, or hooks/, or when npm run sync or npm run check fails.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Not for: applying one of the published skills to some other project

    line 15
  2. Distinctive:

    Run the verify commands. If sync rewrites a file, keep that rewrite.

    line 24
  3. Very specific:

    Put it at skills/<group>/<name>/SKILL.md.

    line 27
  4. Very specific:

    Write rules/<topic>/<name>.md with description, alwaysApply, and globs only when the rule is file-scoped.

    line 33
  5. Very specific:

    Only alwaysApply: true rules in rules/core/ are injected by the session-start hook.

    line 35
  6. Very specific:

    Write agents/<name>.md. name equals the filename without .md.

    line 38
  7. Very specific:

    Add a row to the roster in docs/agents/README.md.

    line 39
  8. Very specific:

    Write commands/<name>.md with a one-line description.

    line 43
  9. Very specific:

    Add hooks/<name>.mjs exporting meta and a default handler.

    line 47
  10. Distinctive:

    Commit, push, or add employer names, secrets, or personal paths.

    line 61

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Manage this stack

A catalog change that stays in the source tree and passes sync, validate, and tests.

This skill maintains levistack. It is not part of the published catalog. Do not copy it into skills/.

When to use

  • Adding or editing a skill, rule, agent, command, or hook in this repository
  • Fixing a npm run sync or npm run check failure caused by that tree
  • Not for: applying one of the published skills to some other project

Project agent surface (this repo only)

  • Source: .cursor/agents/, .cursor/rules/, .cursor/skills/ (for example manage-stack, repo-maintainer).
  • Claude: .claude/agents, .claude/rules, and .claude/skills are directory symlinks to .cursor/. npm run sync recreates them. Never edit through .claude/; change .cursor/ instead.

Steps

  1. Classify the change and follow one section below. Edit only skills/, agents/, rules/, commands/, and hooks/ for the published catalog, or .cursor/{agents,rules,skills}/ for stack tooling.
  2. Lint any skill or agent you touched.
  3. Run the verify commands. If sync rewrites a file, keep that rewrite; do not hand-edit it.

Add or edit a skill

  1. Put it at skills/<group>/<name>/SKILL.md. name in the frontmatter equals <name>.
  2. The group needs skills/<group>/DESCRIPTION.md with a one-line description.
  3. description says what it does, then "Use when ...", is quoted, and is at most 1024 characters.
  4. Lint: node skills/agent-authoring/create-agent/scripts/lint.mjs skills/<group>/<name>

Add or edit a rule

  1. Write rules/<topic>/<name>.md with description, alwaysApply, and globs only when the rule is file-scoped.
  2. npm run sync writes generated/cursor/rules/<topic>-<name>.mdc. Do not edit that file.
  3. Only alwaysApply: true rules in rules/core/ are injected by the session-start hook.

Add or edit an agent

  1. Write agents/<name>.md. name equals the filename without .md. description says when to call it.
  2. Add a row to the roster in docs/agents/README.md.
  3. Lint: node skills/agent-authoring/create-agent/scripts/lint.mjs agents/<name>.md

Add or edit a command

  1. Write commands/<name>.md with a one-line description.
  2. Sync. The command is picked up from that file; there is no second copy to edit.

Add or edit a hook

  1. Add hooks/<name>.mjs exporting meta and a default handler. Shared code goes in hooks/lib/.
  2. npm run sync regenerates hooks/hooks.json and the table in hooks/README.md.
  3. Hooks are opt-in: touch ~/.levistack/<name>.on. A handler returns a result from hooks/lib/result.mjs and exits 0 unless it is a deliberate blocker.

Verify

npm run sync && git diff --exit-code
npm run validate
npm test

git diff --exit-code fails when sync changed a generated file. Stage that generated change with the source edit; do not revert it and do not hand-edit it.

Do not

  • Hand-edit .claude-plugin/, .cursor-plugin/, .codex-plugin/, skills/<group>/.claude-plugin/, generated/, hooks/hooks.json, or the generated tables in README.md and hooks/README.md.
  • Commit, push, or add employer names, secrets, or personal paths.
  • Invent a second procedure. The source-of-truth list above is the whole write surface.

Done when

  • The only hand-written edits are under skills/, agents/, rules/, commands/, hooks/, or docs/agents/README.md.
  • Lint reports no errors on every skill or agent you changed.
  • Sync is idempotent, validate prints no errors, and npm test passes.

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.