agentleFS
marcioaltoemarcioaltoe/skills/AGENTS.md

skills

AGENTS.md0 starsChanged 31 days agoMITView on GitHub

This repository creates, curates, validates, and publishes agent skills. It is both a skills source tree and a static Astro catalog published to GitHub Pages. Guide for creating and maintaining skills here. Applies both to you (human) and to an assistant agent. Current collections:

  • Reads credentials
  • Commits and pushes

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

27 rules. About 0 are common, 9 are distinctive, and 18 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 18

    Very specific

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

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

    Use the relevant local skills before changing skills, documentation, or repo workflow files.

    line 9
  2. Very specific:

    Treat skills/, skills-registry.json, setups/, and web/ as one product surface: installable skills plus the public catalog.

    line 10
  3. Distinctive:

    Write all repository content in English.

    line 11
  4. Very specific:

    Prefer local code search (rg, rg --files) for this repository.

    line 12
  5. Distinctive:

    Do not run destructive git commands such as git reset, git checkout --, git restore, git clean, or forced deletion commands unless the user …

    line 14
  6. Distinctive:

    When adding or replacing a vendored skill, prefer the official upstream repository and skill path whenever one exists.

    line 57
  7. Very specific:

    Before creating a local skill from scratch, first check whether the original/official repository already provides a skill.

    line 58
  8. Very specific:

    Every skill rename or deletion, local or upstream, ends with an ai-memory message to Roundfix so it validates its Baseline setup snapshots.

    line 62
  9. Very specific:

    Use skill-catalog-curation before changing skills-registry.json, setup presets, vendored skill provenance, or the Astro catalog.

    line 64
  10. Distinctive:

    Before editing, identify the task domain and load every matching skill:

    line 94
  11. Very specific:

    When a task touches multiple domains, use all relevant skills.

    line 111
  12. Very specific:

    Use rg and rg --files for local repository discovery.

    line 115
  13. Very specific:

    Use context7-cli for current external library, SDK, API, CLI, or cloud-service documentation.

    line 116
  14. Very specific:

    Use exa-web-search for web research, source discovery, competitive/source sweeps, or current information that is not available from local …

    line 117
  15. Distinctive:

    Do not discard, overwrite, or clean user changes without explicit permission.

    line 137
  16. Very specific:

    Use conventional-commits before staging, committing, writing a commit message, or preparing a PR title.

    line 138
  17. Distinctive:

    Use git status --short before staging.

    line 139
  18. Very specific:

    Use Conventional Commits format without a scope: type: imperative subject.

    line 141
  19. Distinctive:

    Before opening a PR, run the relevant repository verification command.

    line 142
  20. Distinctive:

    Do not rewrite unrelated files or reformat the whole repository.

    line 145
  21. Very specific:

    Every SKILL.md starts with YAML frontmatter.

    line 150
  22. Very specific:

    Commit workflow: Use conventional-commits before staging, committing, writing a commit message, or preparing a PR title.

    line 226
  23. Very specific:

    Commits: follow type: imperative subject — no scope, because cog.toml declares scopes = [].

    line 227
  24. Very specific:

    PR titles: follow Conventional Commits and must pass cog verify "$PR_TITLE".

    line 228
  25. Very specific:

    PR preparation: Use github-pr-workflow before opening, updating, or preparing a PR for review.

    line 229
  26. Distinctive:

    PR verification: Run the relevant repository verification command before opening the PR.

    line 230
  27. Very specific:

    Keep SKILL.md short (ideally < 200 lines).

    line 264

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md 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
AGENTS.md

Repository conventions

This repository creates, curates, validates, and publishes agent skills. It is both a skills source tree and a static Astro catalog published to GitHub Pages.

Guide for creating and maintaining skills here. Applies both to you (human) and to an assistant agent.

High Priority

  • Use the relevant local skills before changing skills, documentation, or repo workflow files. The dispatch table below is mandatory for agent work in this repository.
  • Treat skills/, skills-registry.json, setups/, and web/ as one product surface: installable skills plus the public catalog. Changes to one often require validation or generated artifacts in another.
  • Write all repository content in English. This includes examples, prompts, comments, templates, and skill bodies.
  • Prefer local code search (rg, rg --files) for this repository. Use external research tools only for external documentation or web/source research.
  • Validate before completion. At minimum, run make list for skill changes, make setups-check for preset changes, and git diff --check before claiming work is ready.
  • Do not run destructive git commands such as git reset, git checkout --, git restore, git clean, or forced deletion commands unless the user explicitly asks for that operation.

Structure

skills/
  <collection>/
    <skill-name>/
      SKILL.md            # required
      references/         # optional — deep reference material
      examples/           # optional — usage examples
      templates/          # optional — templates/scaffolds
      scripts/            # optional — automation
  • <collection>: an installable workflow phase or domain grouping. Pick the folder by the skill's primary use case, not by every possible secondary tag.
  • <skill-name>: lowercase, hyphens, no spaces. This is the slug used in bunx skills add ... --skill <name>.
  • A skill's collection is its folder under skills/. The catalog metadata — author, curated tags, and (for vendored skills) upstream provenance — lives in skills-registry.json, keyed by the folder slug, not in SKILL.md frontmatter (see "Catalog, registry, and upstream sync").
  • Repository language is English. All tracked files, docs, examples, prompts, skill bodies, comments, and templates must be written in English.
  • Keep one canonical copy of each skill. Prefer install recipes that combine top-level collections over duplicating folders, nesting reusable sets inside a context folder, or using symlinks. Do not use symlinks inside skills/ or any installable collection because remote subdirectory installs through bunx skills add <owner>/<repo>/<path> must work from a plain GitHub checkout.
  • .agents/skills is the only allowed symlink layer: it exposes canonical catalog skills to the local agent runtime and is also the home of repo-internal skills that are not part of the installable catalog (currently skill-catalog-curation and autoresearch). It is not an installable catalog collection; never copy catalog skill content into it.

Current collections:

CollectionUse for
00-setupRepo conventions, local skills, setup workflows, and baseline agent guardrails.
01-discoveryProblem discovery, research, assumption checks, source capture, and risk identification.
02-planningPRDs, GTM planning, product positioning, communication planning, and business framing.
03-engineering-designArchitecture, security, UX, design systems, documentation plans, and technical design.
04-issue-decompositionParent/child issue breakdown, triage, dependency ordering, and acceptance criteria.
05-implementation-loopCode implementation, framework work, migrations, tests, prototypes, and coding guardrails.
06-review-repairCode review, debugging, quality audits, conflict repair, accessibility, and verification.
07-evidence-deliveryDelivery evidence, commits, handoffs, docs, status notes, office docs, decks, and reports.
08-releaseRelease, deployment, observability, infrastructure, and production-facing operations.
09-learning-loopSkill authoring, evaluations, teaching, lessons learned, and process improvement feedback.
10-marketingMarketing content, positioning, SEO, campaigns, sales material, GTM plans, and pitch work.

Catalog, registry, and upstream sync

Two generated systems sit alongside the skills, both derived from skills-registry.json. Keep them in sync — make list and setup validation are CI-enforced.

  • skills-registry.json — one entry per skill, keyed by folder slug, holding the catalog metadata: author, curated tags, local-path, collection, and (for vendored skills) the upstream repo/path/ref. This is the source of truth for author, tags, and provenance — not the SKILL.md frontmatter. An entry without a repo is authored locally.
  • When adding or replacing a vendored skill, prefer the official upstream repository and skill path whenever one exists. Use community repositories only when there is no official skill source, or when the user explicitly asks for that community source.
  • Before creating a local skill from scratch, first check whether the original/official repository already provides a skill. If not, search community skills. Create a new local skill only when neither source provides an adequate option, and keep the reason visible in the work summary.
  • web/ — a static Astro catalog with search, collection/tag filters, grouping, and per-skill/per-phase install commands. web/scripts/build-index.mjs reads the registry plus each SKILL.md to build the index; make dev runs it locally. See web/README.md.
  • scripts/sync-skills.mjs + skills-registry.lock.json — upstream drift detection. For each registry entry with a repo, it compares the upstream folder tree-SHA against the lock baseline. The Sync upstream skills workflow opens a PR with a drift report when an upstream changes. On drift it replaces the local skill folder with the upstream content, so local edits to a vendored skill are overwritten — send such edits upstream, declare a required fix as local-patches ([{ "file", "find", "replace" }], literal text the sync replaces after every copy and make registry-check confirms is applied), or set the entry's update to off or manual first.
  • When an upstream renames or moves a vendored skill, the sync fails that entry alone and the report's Errors section names the repair: the folder's new upstream path, or the local git mv plus the registry, lockfile, and setups/ renames. Apply it on the sync PR branch — every run keeps failing on that entry until the local slug and path match upstream again.
  • Every skill rename or deletion, local or upstream, ends with an ai-memory message to Roundfix so it validates its Baseline setup snapshots; skill-catalog-curation holds the message contract.

Use skill-catalog-curation before changing skills-registry.json, setup presets, vendored skill provenance, or the Astro catalog. Its job is to keep skill content, curated metadata, setup installs, and the GitHub Pages surface aligned.

Local Agent Skill Enforcement

Agents working in this repository must use the relevant local skills from .agents/skills before editing or reviewing skills, documentation, or repo workflow files. Load the smallest useful set; do not bulk-load every linked skill.

Required local skill triggers:

TaskRequired skills
Create or rewrite a skillskill-creator
Curate catalog/registry/web setupskill-catalog-curation
Improve, benchmark, or evaluate skillautoresearch
Find whether a skill existsfind-skills
Write or revise README/docs/prosetech-writer, crafting-effective-readmes, writing-clearly-and-concisely
Write PRDs, ADRs, issues, PR descriptionstech-writer
Make implementation changescoding-guidelines, no-workarounds
Debug repo scripts, web build, or toolingsystematic-debugging, no-workarounds
Look up current technical docscontext7-cli
Do web/source researchexa-web-search
Commit changesconventional-commits, evidence-gate
Prepare GitHub PRsgithub-pr-workflow, conventional-commits, evidence-gate
Claim work is completeevidence-gate
Hand off session work to another agentai-memory-handoff
Send or read cross-project messagesai-memory-messaging

If a .agents/skills/<name> symlink is missing or broken, read the canonical skill from skills/<collection>/<name>/SKILL.md and repair the symlink when the task depends on it. Do not edit catalog skills through .agents/skills; edit the canonical files under skills/. The exceptions are skill-catalog-curation and autoresearch, which live directly in .agents/skills as repo-internal skills and are edited there.

Skill Dispatch Protocol

Before editing, identify the task domain and load every matching skill:

  • Skill creation or rewrite: skill-creator.
  • Catalog, registry, setup presets, or Astro catalog: skill-catalog-curation.
  • Skill improvement/evaluation: autoresearch.
  • Skill discovery or sample cleanup: find-skills.
  • README, AGENTS, sample instructions, or prose: tech-writer, crafting-effective-readmes, writing-clearly-and-concisely.
  • PRDs, tech specs, ADRs, issues, PR descriptions, status updates: tech-writer.
  • Makefile, scripts, or implementation changes: coding-guidelines, no-workarounds.
  • Debugging repo scripts, web build, or CI failures: systematic-debugging, no-workarounds.
  • External library/API documentation: context7-cli.
  • Web/source research: exa-web-search.
  • Commit or push work: conventional-commits, evidence-gate.
  • GitHub PR preparation: github-pr-workflow before opening, updating, or preparing a PR for review; pair it with conventional-commits and evidence-gate.
  • Hand off session work to another agent: ai-memory-handoff.
  • Send or read cross-project messages: ai-memory-messaging.

When a task touches multiple domains, use all relevant skills. For example, improving a skill README uses both skill-authoring and writing skills.

Search and Research

  • Use rg and rg --files for local repository discovery. Do not use Context7 or Exa to search local files.
  • Use context7-cli for current external library, SDK, API, CLI, or cloud-service documentation.
  • Use exa-web-search for web research, source discovery, competitive/source sweeps, or current information that is not available from local files or official docs.

Commands

make list               # list skills discovered in the repo (CI runs this too)
make setups-check       # validate setup preset files (CI runs this too)
make registry-check     # validate registry/lockfile/frontmatter consistency (CI runs this too)
make branch-check       # validate the current branch name (CI runs this too)
make dev                # run the web/ catalog dev server
make skills-link        # recreate .claude/skills symlinks from .agents/skills
make skills-update      # install/update skills from the bunx skills lockfile
make fmt                # format md/js/ts/json files with oxfmt
make fmt-check          # check formatting without writing

For docs-only changes, formatting the touched Markdown files with npx --yes oxfmt@latest <file...> is acceptable. Avoid whole-repo formatting unless the task is specifically to format the repository.

Git Safety

  • Do not discard, overwrite, or clean user changes without explicit permission.
  • Use conventional-commits before staging, committing, writing a commit message, or preparing a PR title.
  • Use git status --short before staging. If unrelated changes exist, leave them out of the commit.
  • Commits and PR titles must follow Conventional Commits and pass cog verify "$PR_TITLE" for PR titles.
  • Use Conventional Commits format without a scope: type: imperative subject. This repo's cog.toml declares scopes = [], so scoped subjects like feat(skills): ... fail cog verify.
  • Before opening a PR, run the relevant repository verification command.
  • PR bodies must include a clear description, linked task or issue when one exists, architectural decisions, and validation commands run.
  • Include screenshots or GIFs for UI changes.
  • Do not rewrite unrelated files or reformat the whole repository; limit diffs to the requested change.
  • Merge is always squash. The PR title becomes the squashed commit message.

Standard frontmatter

Every SKILL.md starts with YAML frontmatter. The vercel-labs/skills CLI requires only name and description. The catalog reads author, tags, collection, and provenance from skills-registry.json, not from this frontmatter — a skill's own metadata.tags surface in the catalog only behind the "Include author tags" toggle.

---
name: my-skill # required — unique slug (lowercase-with-hyphens)
description: One-liner the agent reads # required — triggers and domain (see below)
metadata:
  version: 0.1.0 # optional — shown as a card badge in the catalog
  tags: [typescript, refactor] # optional — the skill's own "author tags"
  internal: false # optional — true hides the skill from the default listing
---

Metadata for authored skills

Locally authored skills whose registry author is Marcio Altoé must include a complete metadata block in frontmatter:

metadata:
  category: writing
  tags: [readme, docs, technical-writing, prd, techspec, adr, tasks, issues, qa, communication]
  version: 0.1.0
  author: Marcio Altoé
  source: https://github.com/marcioaltoe/skills

Choose category and tags for the skill's real domain. Keep only one version field. Preserve a higher existing version when updating an older authored skill.

About description

This is the most important field. The agent decides whether to load the skill based on it. Best practices:

  • Lead with the main action, not with "Skill to..." or "This skill...".
  • List concrete triggers: which question/context should activate it.
  • Be specific about the domain: "PRs in Conventional Commits style" > "help with PRs".

Good: Creates PR descriptions following Conventional Commits — use when the user asks "create PR", "open PR", or after a sequence of commits ready for review.

Bad: Skill to help with PRs.

Step-by-step: creating a new skill

# 1. Open a branch named <type>/<description>
git fetch origin main --prune
git switch main
git pull --ff-only
git switch -c feat/add-<name>

# 2. Create the structure
mkdir -p skills/<collection>/<name>

# 3. Create SKILL.md with the standard frontmatter (see section above)
$EDITOR skills/<collection>/<name>/SKILL.md

# 4. Test locally
bunx skills add ./skills/<collection>/<name> -g

# 5. Verify the frontmatter parses
make list

# 6. Commit with Conventional Commits (no scope — cog.toml has scopes = [])
git add skills/<collection>/<name>
git commit -m "feat: add <name> skill"

# 7. Open PR and (after approval) merge
git push -u origin feat/add-<name>
gh pr create --base main --head feat/add-<name> --title "feat: add <name> skill"
gh pr merge --squash --delete-branch
git fetch origin main --prune
git switch main
git pull --ff-only

Flow rules

  • Commit workflow: Use conventional-commits before staging, committing, writing a commit message, or preparing a PR title.
  • Commits follow type: imperative subject — no scope, because cog.toml declares scopes = [].
  • PR titles follow Conventional Commits and must pass cog verify "$PR_TITLE".
  • PR preparation: Use github-pr-workflow before opening, updating, or preparing a PR for review.
  • PR verification: Run the relevant repository verification command before opening the PR.
  • PR bodies include a clear description, linked task or issue when one exists, architectural decisions, validation commands run, and screenshots or GIFs for UI changes.
  • Diff scope stays limited to the requested change; do not rewrite unrelated files or reformat the whole repository.
  • Merge is always squash. The PR title becomes the squashed commit message.

SKILL.md content conventions

Suggested body structure (after the frontmatter):

# Human-readable skill name

Short paragraph explaining the purpose.

## When to use

- Scenario 1
- Scenario 2
- Scenario 3

## How to apply

Concrete steps, in the imperative. Be specific — the agent will follow literally.

## Anti-patterns

- What NOT to do.
- Common mistakes this skill should prevent.

## References (optional)

Links to `references/` or external docs.

Keep SKILL.md short (ideally < 200 lines). Extensive material goes in references/ and is linked from the body.

CI validation

The .github/workflows/ci-validate.yml workflow runs on every PR and on every push to main. It runs npx skills add . --list to confirm every frontmatter parses, then validates setup presets (scripts/check-setups.mjs) and registry consistency (scripts/check-registry.mjs). The sync workflow runs the same checks on the synced tree before opening its PR, because PRs opened with GITHUB_TOKEN do not trigger the PR workflows.

.github/workflows/ci-conventions.yml runs on every PR and checks the two names a reviewer cannot fix after the fact: the PR title through cog verify, and the head branch through scripts/check-branch-name.mjs. Run make branch-check before pushing a new branch.

A --list failure is usually:

  • Missing name or description field.
  • Invalid YAML (indentation, quotes).
  • Folder has SKILL.md but no frontmatter.

Internal skills

To hide a skill from the listing (e.g., work in progress, template), add:

metadata:
  internal: true

The skill is only installable if the user passes --skill <name> explicitly or sets INSTALL_INTERNAL_SKILLS=1.

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.