agentleFS
ngxcccngxccc/engineered-skills/skills/setup-skills/SKILL.md

setup-skills

Skill0 starsChanged 58 days agoMITView on GitHub

Configure this repo for the engineering skills — set up its issue tracker, triage label vocabulary, domain doc layout, and interactive 7-pillar Engineering Standards (docs/standards/). Run once before first use of the other engineering skills.

  • Reads credentials

14 other projects use a version of this, 6 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use to-questionnaire and wait-what.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AWSSkill

    to-questionnaire

    Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

    Also in 5 projects that use this

  • AWSSkill

    wait-what

    Stop. That last message did not land: re-pitch it.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Look at the current repo to understand its starting state.

    line 24
  2. Distinctive:

    Default posture: if git remote points at GitHub, propose GitHub.

    line 43
  3. Very specific:

    Ask: "Do you want to keep the default triage labels (needs-triage, needs-info, ready-for-agent, ready-for-human, wontfix)?

    line 54
  4. Very specific:

    When Section B ran on GitHub or GitLab, create each configured label the tracker lacks (gh label create / glab label create).

    line 58
  5. Very specific:

    Section C, Domain docs: Default to single-context, one GLOSSARY.md + docs/adr/ at the repo root.

    line 60
  6. Very specific:

    Update the ## Engineering Standards block in-place using sharp context pointers:

    line 96
  7. Very specific:

    If single-context and GLOSSARY.md does not exist, scaffold starter GLOSSARY.md at root with # Glossary header and domain purpose.

    line 129
  8. Distinctive:

    Run the verification script from this skill's directory against the repo root to ensure no required standard file or AGENTS.md pointer was …

    line 135

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

Setup Engineered Skills's Skills

Scaffold the per-repo configuration that the engineering skills assume:

  • Issue tracker & triage: where issues live and their triage label vocabulary
  • Domain docs: where GLOSSARY.md and ADRs live, and consumer rules for reading them
  • Engineering standards: interactive 7-pillar SSOT under docs/standards/ (Comments, API, Database, Concurrency, Testing, Security, Git Flow)

This is a prompt-driven skill, not a deterministic script. Explore, present what you found, confirm with the user, then write.

Process

1. Explore

Look at the current repo to understand its starting state. Read whatever exists; don't assume:

  • git remote -v and .git/config, is this a GitHub repo? Which one?
  • AGENTS.md and CLAUDE.md at the repo root, does either exist?
  • GLOSSARY.md and GLOSSARY-MAP.md at the repo root
  • docs/adr/ and any src/*/docs/adr/ directories
  • docs/standards/: does this skill's prior output already exist?
  • .scratch/: sign that a local-markdown issue tracker convention is already in use
  • Is the triage skill installed? (a triage skill folder alongside this one, or triage in your available skills.)
  • Monorepo signals, pnpm-workspace.yaml, workspaces in package.json, or populated packages/*.

2. Present findings and ask

Summarise what's present and what's missing. Then take the sections in order, one section, one answer, then the next.

Lead each section with the recommended answer so the user can accept it in a word.

Section A, Issue tracker.

Default posture: if git remote points at GitHub, propose GitHub. If GitLab, propose GitLab. Otherwise:

  • GitHub: issues live in repo's GitHub Issues (uses gh CLI). If .github/ISSUE_TEMPLATE/ or .github/PULL_REQUEST_TEMPLATE.md is absent, scaffold standardized issue forms (task.yml, sub_issue.yml, bug_report.yml, feature_request.yml, config.yml) from references/issue-templates/ and PR template from references/PULL_REQUEST_TEMPLATE.md, tailoring <owner>/<repo>, area: labels, and check commands to the repo.
  • GitLab: issues live in repo's GitLab Issues (uses glab CLI)
  • Local markdown: issues live as files under .scratch/<feature>/
  • Other (Jira, Linear, etc.), record freeform prose description

Record the choice in docs/standards/issue-tracker.md.

Section B, Triage label vocabulary. Skip if triage skill is not installed.

Ask: "Do you want to keep the default triage labels (needs-triage, needs-info, ready-for-agent, ready-for-human, wontfix)? (recommended: yes)"

Record the vocabulary directly in docs/standards/issue-tracker.md under ## Triage Label Vocabulary (single source of truth). Do not generate a separate triage-labels.md.

When Section B ran on GitHub or GitLab, create each configured label the tracker lacks (gh label create / glab label create).

Section C, Domain docs. Default to single-context, one GLOSSARY.md + docs/adr/ at the repo root. Offer multi-context only for monorepos (with GLOSSARY-MAP.md). Record rules in docs/standards/domain-docs.md. Scaffold starter GLOSSARY.md if not present.

Section D, Engineering Standards (docs/standards/).

Interview the user with terse single-line prompts for each pillar. Default: recommended.

  1. Code comment taxonomy, English-only, 4-tier (TSDoc, // WHY:, // TODO(context):, ban echoing/dead code)? (recommended: yes)
  2. API & error handling, RESTful routes, RFC 9457, envelope, Idempotency-Key? (recommended: yes)
  3. Database & migrations, snake_case, selective projections, zero-downtime expand/contract? (recommended: yes)
  4. Concurrency & locking, GiST exclusion, SELECT FOR UPDATE, Redlock, deadlock ordering? (recommended: yes)
  5. Testing & fixtures, 3-tier hierarchy, factories & mothers, SUT isolation, OpenAPI types? (recommended: yes)
  6. Security & cryptography, scrypt, timing-safe compare, single-use tokens, anti-enumeration? (recommended: yes)
  7. Git flow & PRs, branch prefixes, conventional commits (≤72), 3-tier PR matrix, human audit? (recommended: yes)
  8. Code review overrides, repo-specific diff excludes, tool-enforced skips, layer symbol map, generated contract spot-check (docs/standards/code-review.md)? (recommended: yes)

On approval, scaffold docs/standards/*.md using the corresponding high-density seed templates in references/standards/.

Section E, Deterministic Guardrails (Lint, Boundaries & CI).

Prose standards sit at the bottom of the trust hierarchy, agents ignore them when context fills up. Before relying on docs/standards/, inspect the repo's existing toolchain (package.json, oxlint/eslint/biome, tsconfig, ruff/mypy, golangci-lint, .pre-commit-config.yaml, .github/workflows/) and wire deterministic checks wherever the stack supports them:

  1. Ban nuance-heavy APIs in product code, restrict error-prone primitives (e.g., useEffect, raw timers like setTimeout, direct process.env reads) to dedicated core/framework modules via linter rules (no-restricted-imports, no-restricted-syntax), with error messages naming the exact wrapper/helper to use instead.
  2. Enforce layer boundaries, configure import-boundary rules (e.g., eslint-plugin-boundaries, dependency-cruiser, import-linter) so cross-layer imports (renderer ↔ main, domain ↔ infra) fail at lint/CI time.
  3. Comment & suppression hygiene, configure lint rules to reject bare TODO/FIXME without a ticket ID and flag unapproved inline suppressions (eslint-disable, @ts-ignore).
  4. Pre-commit / CI gate, if no hook or CI job runs typecheck + lint + tests, scaffold one now.

Record each active check in a Rule → Enforcer table in docs/standards/code-review.md so reviewers skip what tooling already enforces.

3. Confirm and edit

Show the user a draft of the ## Engineering Standards block to add to AGENTS.md / CLAUDE.md and the contents of docs/standards/*.md. Let them edit before writing.

4. Write

Pick the file to edit: AGENTS.md (or CLAUDE.md if existing).

Update the ## Engineering Standards block in-place using sharp context pointers:

## Engineering Standards

MUST read the corresponding standard file under `docs/standards/` before modifying related code or tests:

- **Issue tracking & tickets** → `docs/standards/issue-tracker.md`
- **Domain glossary & ADRs** → `docs/standards/domain-docs.md`
- **Comments & docstrings** → `docs/standards/code-comment-taxonomy.md`
- **Routes, DTOs, and error responses** → `docs/standards/api-design-and-error-handling.md`
- **Schemas, queries, and migrations** → `docs/standards/database-and-migrations.md`
- **Locks, race conditions, and transactions** → `docs/standards/concurrency-and-locking.md`
- **Tests, factories, and fixtures** → `docs/standards/testing-and-fixtures.md`
- **Auth, hashing, and sanitization** → `docs/standards/security-and-cryptography.md`
- **Branches, commits, and PRs** → `docs/standards/git-flow-and-pr-matrix.md`
- **Reviewing a branch, diff, or PR** → `docs/standards/code-review.md`

Scaffold all standard files into docs/standards/ using the seed templates in references/:

  • references/issue-trackers.md → docs/standards/issue-tracker.md
  • references/domain.md → docs/standards/domain-docs.md
  • references/standards/code-review.md → docs/standards/code-review.md
  • references/standards/code-comment-taxonomy.md → docs/standards/code-comment-taxonomy.md
  • references/standards/api-design-and-error-handling.md → docs/standards/api-design-and-error-handling.md
  • references/standards/database-and-migrations.md → docs/standards/database-and-migrations.md
  • references/standards/concurrency-and-locking.md → docs/standards/concurrency-and-locking.md
  • references/standards/testing-and-fixtures.md → docs/standards/testing-and-fixtures.md
  • references/standards/security-and-cryptography.md → docs/standards/security-and-cryptography.md
  • references/standards/git-flow-and-pr-matrix.md → docs/standards/git-flow-and-pr-matrix.md
  • references/issue-templates/ → .github/ISSUE_TEMPLATE/ (if GitHub tracker and missing; tailor <owner>/<repo> in config.yml and area: options)
  • references/PULL_REQUEST_TEMPLATE.md → .github/PULL_REQUEST_TEMPLATE.md (if GitHub tracker and missing; tailor check commands)
  • If single-context and GLOSSARY.md does not exist, scaffold starter GLOSSARY.md at root with # Glossary header and domain purpose.

Format requirement: high density, decision tables, code snippets, sharp context pointers. No narrative fluff, no redundant parentheses, zero tutorial prose.

5. Verify & Done

Run the verification script from this skill's directory against the repo root to ensure no required standard file or AGENTS.md pointer was skipped:

node <skill-dir>/scripts/verify-setup.mjs .

Fix any reported missing files or pointers before finishing.

Tell the user the setup is complete. Mention they can edit docs/standards/*.md directly later, re-running this skill is only necessary if they want to reconfigure trackers or restart from scratch.

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.