agentleFS
y-miyazakiy-miyazaki/config/.cursor/rules/agent-skills.mdc

config / rules

Cursor rule1 starsChanged 8 days agoApache-2.0View on GitHub

Agent Skills Development Instructions

The file

We split this agent-skills.mdc into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    When common-checklist.md uses ItemIDs (PREFIX-nn), use exactly one layout per file (BP-05).

    line 59
  2. Very specific:

    Do not include raw secret values, credentials, or internal-only URLs in SKILL.md, references, or eval fixtures.

    line 115

≈ “Common” is an estimate: at least 1 in 5 of the 6,668 Cursor rule 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
agent-skills.mdc
---
description: Agent Skills Development Instructions
globs: **/skills/**/SKILL.md, **/skills/**/references/*.md
---

# Agent Skills Instructions

## Scope

- Scope covers designing and updating agent skill documents (`SKILL.md`) and bundled reference files.
- This file defines SKILL authoring standards and is treated as an exception to the common instruction template (Required Sections ordering for skills overrides the default Standards layout).
- Structural, quality, and pattern rules (S-_, Q-_, P-_, BP-_) live in Guidelines (synced from `agent-skills-review`).

## Standards

### Naming Conventions

| Component      | Rule       | Example             |
| -------------- | ---------- | ------------------- |
| Skill name     | kebab-case | go-review           |
| Reference file | kebab-case | common-checklist.md |
| Script file    | snake_case | validate.sh         |

### Agent Root Canonical List

| Kind        | Values                                                                          |
| ----------- | ------------------------------------------------------------------------------- |
| Agent roots | `.github`, `.agents`, `.claude`, `.codex`, `.cursor`, `cursor`, `.kiro`, `kiro` |
| Not a root  | `.vscode` (editor-local configuration)                                          |

Preferred path forms in markdown examples:

| Kind        | Form                                          |
| ----------- | --------------------------------------------- |
| Cross-skill | `<agent-root>/skills/<skill-name>/...`        |
| In-skill    | `scripts/...`, `references/...`, `assets/...` |

### Reference Files Matrix

| File Name                       | Required | Purpose                                                                                | Load Trigger              |
| ------------------------------- | -------- | -------------------------------------------------------------------------------------- | ------------------------- |
| `common-checklist.md`           | Yes      | Canonical checklist (ItemIDs when gates/findings are cited; see Checklist item layout) | `(always read)`           |
| `common-output-format.md`       | Yes      | Canonical output contract                                                              | `(always read)`           |
| `common-troubleshooting.md`     | No       | Failure diagnostics and rerun procedure                                                | `(read on failure)`       |
| `common-individual-commands.md` | No       | Debug-only command catalog                                                             | `(read on debugging)`     |
| `category-*.md`                 | No       | Domain-specific review criteria                                                        | `(read when <condition>)` |

Allowlisted Reference Files Guide triggers:

- `(always read)`
- `(read on failure)`
- `(read on debugging)`
- `(read on automation path)`
- `(read on interactive path)`
- `(read when <condition>)` — `<condition>` is a single concrete predicate

### Checklist item layout

When `common-checklist.md` uses ItemIDs (`PREFIX-nn`), use **exactly one** layout per file (BP-05). Recipe checklists without ItemIDs may keep plain procedural H2s.

| Layout    | H2                               | Items                                                                        | Typical family                              |
| --------- | -------------------------------- | ---------------------------------------------------------------------------- | ------------------------------------------- |
| **Index** | `## Title (PREFIX)`              | `- PREFIX-nn (LEVEL): title` (Check/Why/Fix in `category-*.md` when present) | `*-review`, `*-validation`, step checklists |
| **Gate**  | `## Title` (no `(PREFIX)` on H2) | `### PREFIX-nn: Title` (+ optional checkbox / **PASS**)                      | docs-\*, utility gates                      |

Plain H2 sections **without** ItemIDs (for example `## Execution Order`, `## Pass Criteria`) may sit beside index or gate sections in the same file. Do not mix index H2 short-names with gate H3 ItemID headings. Do not require ItemIDs on every skill (loop recipe checklists may stay ID-less).

## Guidelines

### Best Practice Checks (BP)
- BP-01 (SHOULD): Description states what the skill does and when to use it
- BP-02 (SHOULD): Reference Files Guide states when each reference is read
- BP-03 (SHOULD): SKILL.md avoids redundant prose already in references
- BP-04 (SHOULD): Do not over-compress below sibling skill depth
- BP-05 (SHOULD): Checklist ItemID layout is one style per file

### Pattern Checks (P)
- P-01 (SHOULD): Workflow matches the skill family pattern (not ad-hoc steps)
- P-02 (SHOULD): Output matches common-output-format contract
- P-03 (SHOULD): Gather required context before emitting the final report
- P-04 (SHOULD): Shared contract rules match sibling skills

### Quality Checks (Q)
- Q-01 (SHOULD): Output format is implementable (schema or Markdown sections)
- Q-02 (SHOULD): Execution Scope splits Does vs Out of Scope
- Q-03 (SHOULD): Execution path is single/canonical or branches are explicit
- Q-04 (SHOULD): Inputs/outputs name concrete shapes with examples
- Q-05 (SHOULD): Constraints list only non-obvious project rules
- Q-06 (MUST): Instructions are imperative; no "appropriately"/"as needed"
- Q-07 (SHOULD): SKILL.md depth aligns with package siblings
- Q-08 (SHOULD): References/ includes common-checklist and common-output-format
- Q-09 (SHOULD): Record waza token evidence; over-budget is advisory
- Q-10 (SHOULD): Workflow defines failure severity and actions
- Q-11 (SHOULD): Required params have no silent defaults; defaults are optional
- Q-12 (SHOULD): Input/Output/Workflow/References do not contradict each other

### Structural Checks (S)
- S-01 (MUST): SKILL.md has the five required ## sections
- S-02 (MUST): Frontmatter has name, description, license (+ version metadata)
- S-03 (MUST): References/ start with H1 and use consistent heading hierarchy
- S-04 (MUST): Links stay in-skill or https:// (no ../docs escapes)
- S-05 (MUST): Use <agent-root> for install paths; do not hardcode .github/skills

### Code Modification Guidelines

- Automate deterministic checks (existence, quantitative, file presence) in skill `scripts/`; keep judgment-based checks in the review skill workflow.


## Testing and Validation

On-demand validation: see agent-skills-review skill SKILL.md.

## Security Guidelines

- Do not include raw secret values, credentials, or internal-only URLs in SKILL.md, references, or eval fixtures; use obvious placeholders and document redaction where relevant.
- Validate inputs in `scripts/` code and prevent arbitrary path operations.
- Sanitize arguments when invoking external tools to prevent command injection.

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.