agentleFS
Bossmann007Bossmann007/cursor-kit/skills/senior-check/SKILL.md

senior-check

Skill0 starsChanged 2 months agoMITView on GitHub

Read-only audit of whether a repo is built the way a senior engineer would: process (emode steps, verify, CI, PR flow), versions (lockfile, pinned runtime, tags matching the manifest, changelog), docs (README, SPEC, ADRs), git hygiene, secrets, and the default approaches in `principles` part A. Use on "senior check", "estamos fazendo certo?", "boas práticas", "auditoria do projeto", before a PR that ends a phase, or when emode §5 calls it.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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. Distinctive:

    Only for the current phase or the open PR, not the whole history:

    line 33
  2. Very specific:

    Dependencies: run the ecosystem's audit (npm audit --omit=dev, uv pip list --outdated or pip-audit, dotnet list package --vulnerable).

    line 38
  3. Very specific:

    Performance: if the project has a budget, it is checked in scripts/verify.

    line 42

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

Answers one question with evidence: "is this repo being built the way a senior engineer would, by our own rules?" It reports and never edits tracked files; --run-verify runs the repo's own scripts/verify, which may write (the script reports leftovers). Fixes go through /emode like any other change.

1. Run the script (facts first)

scripts/senior-check.sh <repo> --run-verify (from this skill folder; any path inside the repo works). One line per check: PASS / WARN / FAIL with evidence; exit 0 = no FAIL, 1 = FAIL, 2 = bad usage. Never restate a line the script did not print. It checks the repo root only: a monorepo's sub-packages need a manual look.

  • FAIL: blocks closing the phase, not the "built" of one change (no verify, verify red, commits only on this disk, most recent commits on the default branch without a PR, manifest without a committed lockfile, no README, secret in history).
  • WARN: a gap a senior would close soon (no CI, runtime not pinned, tag behind the manifest, no CHANGELOG, no ADRs, SPEC without Approved:, a few direct commits: rebase-merged PRs look direct, so confirm before reporting).
  • gitleaks FAIL: triage with gitleaks git . --redact -v before you report it; a demo fixture is a false positive, a real key means "tell Enzo to rotate it" (never print the value). A triaged false positive goes to .gitleaksignore by fingerprint, in a PR.

2. Judge what a script cannot (read, then cite file:line)

Only for the current phase or the open PR, not the whole history:

  1. emode was followed: SPEC written and approved before code; scope frozen during the PR; docs (SPEC, ADR, README) changed in the same PR as the behavior; blindspot-pass and a fresh review on large changes.
  2. Tests prove behavior: new behavior has a test that would fail without it; no skipped or deleted tests to get green.
  3. Dependencies: run the ecosystem's audit (npm audit --omit=dev, uv pip list --outdated or pip-audit, dotnet list package --vulnerable); report high/critical only. A major version behind with a known CVE is a FAIL.
  4. Default approaches: principles part A (Engineering); check the ones that apply to code. Each is a default, not a law: a different choice is fine when it is written down (ADR or PR body) with the reason.
  5. Performance: if the project has a budget, it is checked in scripts/verify; if not, say so (see performance).

3. Report

Lead with the verdict (pronto para seguir / seguir depois de N correções), then at most 5 findings, worst first, each as cause and fix with evidence (script line or file:line). End with the one next step. A finding that needs code becomes an /emode task (T3 Code brief), not a fix inside this skill.

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.