agentleFS
madebyarismadebyaris/cursor-composer-rules/.cursor/skills/senior-practices/SKILL.md

senior-practices

Skill3 starsChanged 4 months agoMITView on GitHub

Version-pinned coding and framework best practices from official docs and corroborated senior/maintainer guidance — use for unfamiliar stacks, upgrades, migrations, architecture reviews, "best practice" questions, or before introducing a new pattern when style governance says improve might be warranted.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not imitate private chain-of-thought.

    line 22
  2. Very specific:

    Read manifests: package.json, go.mod, Cargo.toml, pyproject.toml, Gemfile, etc.

    line 26
  3. Distinctive:

    If versions cannot be determined, say so and label recommendations [H] until anchored.

    line 31
  4. Distinctive:

    Read release notes / migration guides for the version span in use.

    line 38
  5. Distinctive:

    Check security advisories when the change touches auth, crypto, input, or dependencies.

    line 39
  6. Distinctive:

    Add T2/T3 sources only when T1 is silent on the specific decision:

    line 45
  7. Distinctive:

    Use this shape (omit empty sections):

    line 70

≈ “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

Senior practices skill

Companion to .cursor/rules/composer-senior-practices.mdc. Load when external, current guidance is needed — not when matching an obvious local pattern suffices.

For multi-vendor audits or contradictory literature, pair with deep-research. For applying findings without scope creep, follow composer-coding-excellence § Style governance.

See reference.md for compact repeatable checklists.

Operating stance

Training data is a hypothesis until anchored to this repo's versions and T1 sources. Prefer falsification: check deprecations, breaking changes, and "do not use" guidance before recommending a pattern. Recollection without a primary source stays [H] until inspected.

Do not imitate private chain-of-thought. Make the work inspectable: version inventory, source list, reconciled recommendations, and apply-now vs follow-up split.

Phase A — Inventory (this repo)

  1. Read manifests: package.json, go.mod, Cargo.toml, pyproject.toml, Gemfile, etc.
  2. Record exact versions of the framework, runtime, and relevant libraries.
  3. Note existing project standards: eslint/prettier, ADRs, README, CI config.
  4. Scan how similar problems are already solved in this codebase (2–3 examples).

If versions cannot be determined, say so and label recommendations [H] until anchored.

Phase B — Anchor (T1 primary)

For each decision point:

  1. Open official docs keyed to the pinned version (not "latest" unless the repo tracks latest).
  2. Read release notes / migration guides for the version span in use.
  3. Check security advisories when the change touches auth, crypto, input, or dependencies.

Draft a short coverage note: what T1 says, what is deprecated, what the repo currently does.

Phase C — Corroborate (T2/T3, sparingly)

Add T2/T3 sources only when T1 is silent on the specific decision:

  • Platform owner guides (Vercel, Cloudflare, etc.) matched to deployment target.
  • Maintainer conference talks or engineering blogs when they align with T1 or include reproducible examples.

Log contradictions; do not pick the blog over the official doc without explaining why.

Phase D — Reconcile (this repo wins constraints)

Map external guidance to local reality:

CheckQuestion
Style governanceMatch file style, or is improvement explicitly in scope?
DependenciesDoes the repo already have a library for this?
Blast radiusCan this be one vertical slice?
TestsWhat verification exists or is needed?

Split output:

  • Apply now — fits current task and minimal diff.
  • Follow-up plan — style/tech-debt; cite paths; do not implement unprompted.

Phase E — Deliver

Use this shape (omit empty sections):

## Context
- Stack + versions:
- Question:

## Sources inspected
| Tier | Source | What it established |
| --- | --- | --- |

## Recommendations
1. [P/T1] … — apply now | follow-up
2. …

## Reconcile with this repo
- Existing patterns to follow:
- Conflicts with local style (if any):

## Verification
- Command or check | expected result

Tag confidence when helpful: [P] primary, [S] synthesized, [H] hypothesis.

Anti-patterns

  • Recommending "latest best practice" without checking pinned versions.
  • Citing tutorials that contradict official docs.
  • Drive-by refactors across unrelated files.
  • Adding dependencies when the repo already has an equivalent.
  • Skipping how the codebase already solves the problem.

When to escalate

  • Legal, compliance, or org-specific policy not in public docs — flag blocked and name what human input is needed.
  • Irreconcilable T1 vs repo constraint — present options with blast radius; do not silently override ADRs or lint rules.

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.