agentleFS
heptametaheptameta/heptabase-cli-skills/.claude/skills/maintain-skills/SKILL.md

maintain-skills

Skill159 starsChanged 10 days agoMITView on GitHub

Maintain Agent Skills in a Heptabase repository across Claude Code, Codex, and Cursor. Use when creating, editing, moving, removing, or auditing files under .claude/skills/.

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

24 rules. 0 are common, 15 are distinctive, and 9 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 15

    Distinctive

    This author's own choices. Worth a look.

  • 9

    Very specific

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

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

    Treat .claude/skills/<skill-name>/ as the canonical source for team-owned repository skills.

    line 15
  2. Very specific:

    Keep .agents/skills as a symlink to ../.claude/skills so Codex and other Agent Skills clients discover the same skills.

    line 16
  3. Very specific:

    Do not copy team skills into .cursor/skills/ or .codex/skills/.

    line 17
  4. Very specific:

    Use convert-cursor-to-claude-skill when converting rules, migrating commands, or fixing misplaced skill directories.

    line 18
  5. Distinctive:

    When the user has not chosen:

    line 36
  6. Distinctive:

    Prefer model invocation for repository conventions, reference knowledge, and guidance that should apply whenever relevant.

    line 38
  7. Distinctive:

    Consider explicit-only invocation for named workflows whose timing the user is expected to control.

    line 39
  8. Distinctive:

    Do not infer explicit-only invocation only because a workflow uses tools, requires approval, or can cause side effects.

    line 40
  9. Distinctive:

    If the correct invocation behavior is not easy to judge from the skill's purpose, ask the user before finalizing the skill.

    line 41
  10. Distinctive:

    Follow the user's request for Codex metadata.

    line 49
  11. Very specific:

    Do not add the file only because a skill is new or being edited.

    line 51
  12. Distinctive:

    When adding or editing the file:

    line 62
  13. Very specific:

    When present or required, interface.short_description must contain 25 to 64 characters, and interface.default_prompt must mention …

    line 66
  14. Distinctive:

    Run the repository checker after creating or changing a skill:

    line 70
  15. Distinctive:

    Before finalizing a new or changed skill:

    line 78
  16. Very specific:

    Run check-skills.mjs --changed to detect mechanical conflicts.

    line 80
  17. Very specific:

    Search .claude/skills/ and relevant AGENTS.md, CLAUDE.md, .claude/rules/, and .cursor/rules/ files for overlapping triggers or instructions.

    line 81
  18. Distinctive:

    Keep copies of the same team skill aligned across repositories.

    line 86
  19. Distinctive:

    If the correct behavior is unclear, ask the user.

    line 87
  20. Distinctive:

    Run the checker from the repository root:

    line 91
  21. Distinctive:

    When a task changes skills in more than one repository, run the checker separately in each affected repository.

    line 111
  22. Very specific:

    Only canonical .claude/skills/ files changed.

    line 115
  23. Distinctive:

    No affected skills give conflicting instructions.

    line 117
  24. Distinctive:

    No unrelated skill or agent configuration was changed.

    line 118

“Common” is measured: kept by at least 6 in 10 of the 6 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

Maintain Skills

Apply only the Heptabase repository conventions below. Follow the active agent's normal skill-authoring guidance for general skill structure and writing quality.

Use the canonical locations

  • Treat .claude/skills/<skill-name>/ as the canonical source for team-owned repository skills.
  • Keep .agents/skills as a symlink to ../.claude/skills so Codex and other Agent Skills clients discover the same skills.
  • Do not copy team skills into .cursor/skills/ or .codex/skills/.
  • Use convert-cursor-to-claude-skill when converting rules, migrating commands, or fixing misplaced skill directories. This skill owns skill content and metadata, not path migration.

Decide the invocation policy

For every new skill, explicitly decide whether the model may invoke it automatically.

For an existing skill, preserve its current invocation policy unless the user asks to change it or the skill's intended behavior has materially changed.

The user's stated invocation choice always wins; you can suggest or ask but not override it. Do not override it with the defaults below.

<!-- prettier-ignore -->
Intended behaviorSKILL.mdagents/openai.yaml
The agent may load it when relevantOmit disable-model-invocation, or set it to falseOmit policy.allow_implicit_invocation, or set it to true
Only the user may start itSet disable-model-invocation: trueSet policy.allow_implicit_invocation: false

Because Codex allows implicit invocation by default, a human-invocation-only skill must include both settings and the complete UI metadata described below. An implicitly invocable skill may omit agents/openai.yaml unless it needs Codex UI metadata or dependencies.

When the user has not chosen:

  • Prefer model invocation for repository conventions, reference knowledge, and guidance that should apply whenever relevant.
  • Consider explicit-only invocation for named workflows whose timing the user is expected to control.
  • Do not infer explicit-only invocation only because a workflow uses tools, requires approval, or can cause side effects. Authorization is still checked when the action occurs.
  • If the correct invocation behavior is not easy to judge from the skill's purpose, ask the user before finalizing the skill.

Add Codex metadata by invocation mode

For a skill that the model may invoke automatically, agents/openai.yaml is optional. Add or update it only when it serves a Codex-specific purpose:

  • Improve a user-facing skill's name, description, default prompt, icon, or branding in Codex.
  • Declare tool dependencies for Codex.
  • Follow the user's request for Codex metadata.

Do not add the file only because a skill is new or being edited. Keep portable discovery in the SKILL.md name and description.

For a human-invocation-only skill, agents/openai.yaml and these fields are required:

  • interface.display_name
  • interface.short_description
  • interface.default_prompt
  • policy.allow_implicit_invocation: false

The skill selector is the primary entry point for a human-invocation-only skill, so its name, description, and starter prompt must be clear there.

When adding or editing the file:

  • Quote string values.
  • For implicitly invocable skills, keep interface fields optional.
  • When present or required, interface.short_description must contain 25 to 64 characters, and interface.default_prompt must mention $skill-name.
  • Include policy.allow_implicit_invocation when needed to keep Codex behavior aligned with disable-model-invocation.
  • Preserve unrelated interface, policy, and dependency fields.

Run the repository checker after creating or changing a skill:

node .claude/skills/maintain-skills/scripts/check-skills.mjs --changed

Prevent conflicting skills

Before finalizing a new or changed skill:

  1. Run check-skills.mjs --changed to detect mechanical conflicts.
  2. Search .claude/skills/ and relevant AGENTS.md, CLAUDE.md, .claude/rules/, and .cursor/rules/ files for overlapping triggers or instructions. Read possible overlaps; the checker cannot judge whether prose is consistent.
  3. Resolve each conflict introduced or affected by the change:
    • Frontmatter names must be unique within one repository. Separate repositories may reuse names.
    • For overlapping triggers, narrow the descriptions and state which skill owns each case.
    • For conflicting instructions, keep one source of truth or narrow the scopes so both can coexist.
    • Keep copies of the same team skill aligned across repositories.
  4. If the correct behavior is unclear, ask the user. Report unrelated pre-existing conflicts without expanding the task to fix them.

Validate the result

Run the checker from the repository root:

node .claude/skills/maintain-skills/scripts/check-skills.mjs --changed

For a full repository audit:

node .claude/skills/maintain-skills/scripts/check-skills.mjs

Standard checks require complete Codex UI metadata only for human-invocation-only skills.

For an optional audit that requires complete Codex UI metadata for every existing skill:

node .claude/skills/maintain-skills/scripts/check-skills.mjs --strict-ui

When a task changes skills in more than one repository, run the checker separately in each affected repository.

Review the final diff and confirm that:

  • Only canonical .claude/skills/ files changed.
  • Invocation settings agree across SKILL.md and agents/openai.yaml.
  • No affected skills give conflicting instructions.
  • No unrelated skill or agent configuration was changed.

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.