standard-builder
Skill4 starsChanged 3 months agoMITView on GitHub
Help a user create, draft, refine, or update engineering standards by inspecting an existing codebase for stack-specific patterns, architecture boundaries, tests, mocking, API behavior, service design, and review evidence; use when the user asks to infer standards from a repo, codify existing team patterns, tailor the Zazz standards library to an organization, split standards by domain, or draft standards such as TypeScript Express microservice patterns, API testing and mocking, unit/integration testing, frontend conventions, data access, CI, deployment, or observability.
In this repository21 other files it gives its agents.
- templates/AGENTS.mdAGENTS.md
- architecture-doc-builderSkill
- confluenceSkill
- conformanceSkill
- doc-checkSkill
- feature-doc-builderSkill
- gh-issueSkill
- gh-stackSkill
- gh-wikiSkill
- handoffSkill
- jiraSkill
- pr-builderSkill
- proposal-builderSkill
- pr-reviewSkill
- psqlSkill
- qa-testingSkill
- spec-builderSkill
- spec-drivenSkill
- sqlcmdSkill
- worktreeSkill
- zazz-boardSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 10 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
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
- Distinctive: line 8
Use this skill to turn existing codebase practice into reviewable standards for the Zazz methodology.
- Distinctive: line 20
Do not turn every existing habit into a rule.
- Distinctive: line 31
If the target is broad, propose a decomposed standard set instead of one giant document.
- Very specific: line 43
Use rg and repo-native tools first.
- Distinctive: line 56
When using examples, cite repo-relative paths and concise identifiers.
- Distinctive: line 70
Halt condition: when an agent must stop and ask for direction.
- Distinctive: line 88
Keep standards decomposed by work context.
- Very specific: line 96
Use RFC-2119 language (MUST, MUST NOT, SHOULD) for requirements when the repo's docs style uses it.
- Distinctive: line 99
Add index entry updates when creating or splitting standards.
- Distinctive: line 100
If modifying public/shared standards, run a sensitive-reference scan before finishing.
- Distinctive: line 104
Stop and ask for human direction when:
- Distinctive: line 124
When the user wants a first draft only, do not over-edit unrelated standards.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Standards Builder
Use this skill to turn existing codebase practice into reviewable standards for the Zazz methodology. The output is a draft standard or a small set of decomposed standards that a human team can review, correct, and adopt.
Core Rule
Infer standards from evidence, not vibes. Inspect representative files, tests, configuration, docs, and recent diffs. Separate:
- Observed pattern: what the codebase consistently does today.
- Recommended standard: what the team should make normative.
- Open question: what needs human confirmation because the code is inconsistent, risky, or ambiguous.
Do not turn every existing habit into a rule. Prefer patterns that improve clarity, reviewability, testability, security, reliability, or agent execution.
Intake
Establish the target before drafting:
- Identify the repo, service, package, or bounded area to inspect.
- Identify the intended standard type, such as microservice design, unit testing, integration testing, API testing and mocking, error handling, data access, CI, deployment, logging, or frontend patterns.
- Identify the adopting team's stack and architecture from code, config, and docs rather than assuming it.
- If the target is broad, propose a decomposed standard set instead of one giant document.
Example decomposition for a TypeScript Express microservice:
microservice-structure.md— folder layout, module boundaries, configuration, dependency injection.microservice-api.md— route shape, request validation, response envelopes, error mapping, auth.microservice-testing-unit.md— unit test boundaries, test data builders, mocks, assertions.microservice-testing-api.md— API tests, supertest/fetch clients, dependency mocking, error-path coverage.microservice-observability.md— logging keys, correlation IDs, metrics, health checks.
Evidence Collection
Use rg and repo-native tools first. Collect enough evidence to prove the pattern without reading the whole repo by
default.
Look for:
- docs:
README,AGENTS.md, the configured docs root (for example.zazz/ordocs/), architecture notes, standards, ADRs. - package/config:
package.json,tsconfig.json,eslint,vitest,jest,playwright,docker, CI workflows. - source layout: representative services, route modules, middleware, controllers, clients, repositories, workers.
- tests: unit, integration, API, contract, fixtures, mocks, test builders, snapshot usage.
- runtime seams: env parsing, logging, dependency injection, auth, database clients, queues, outbound HTTP clients.
- review evidence: PR templates, CI checks, test commands, coverage or smoke-test expectations.
When using examples, cite repo-relative paths and concise identifiers. Avoid personal paths, local machine details,
restricted project names, and line-number fossils. Use path examples like services/billing/src/routes/invoices.ts, not
absolute checkout paths.
Pattern Analysis
For each candidate rule, record:
- Evidence: 2-5 representative repo-relative examples.
- Consistency: consistent, emerging, mixed, or one-off.
- Purpose: why the rule matters for implementation, tests, review, or operations.
- Blast radius: which paths and activities the standard should apply to.
- Counterexamples: places where the code differs and whether they are legacy, exceptions, or unresolved.
- Review evidence: what proof a PR must include before human review.
- Halt condition: when an agent must stop and ask for direction.
Promote a pattern to a standard only when the purpose is clear and the evidence is strong enough. If evidence is mixed, write an open question or a migration note instead of pretending the rule is settled.
Standard Shape
Draft standards as concrete, agent-usable docs:
- title and short scope statement.
- stack-specific baseline note when the standard assumes a particular language, framework, database, cloud, or test runner.
applies_toguidance that can be reflected in<DOCS_ROOT>/standards/index.yaml.- prescriptive rules with desired and not-desired examples.
- halt conditions.
- required review evidence.
- related standards.
Keep standards decomposed by work context. A microservice unit-testing standard should not also carry API route design, deployment, and logging rules unless those concerns are inseparable.
Drafting Rules
- Preserve useful specificity. Replace private names with neutral, repo-relative examples; do not erase the technical detail that makes the standard actionable.
- Clearly label stack-specific guidance as a baseline example that adopting teams can replace.
- Use RFC-2119 language (
MUST,MUST NOT,SHOULD) for requirements when the repo's docs style uses it. - Include desired and not-desired examples where they clarify behavior.
- Include commands for verification only when they are repo-native and discovered from the codebase.
- Add index entry updates when creating or splitting standards.
- If modifying public/shared standards, run a sensitive-reference scan before finishing.
Halt Conditions
Stop and ask for human direction when:
- the codebase shows two incompatible patterns and no docs identify the intended direction.
- the inferred standard would require broad migration or deprecating live behavior.
- the standard touches security, privacy, compliance, accessibility, or production deployment policy without existing organization guidance.
- representative examples contain restricted customer, credential, local-machine, or proprietary names that cannot be safely neutralized.
- tests or CI evidence cannot be identified for a proposed requirement.
Output
Return:
- standards drafted or updated, with repo-relative paths.
- evidence inspected, summarized by path or area.
- open questions for the team.
index.yamlupdates needed or applied.- verification and sensitive-reference scans run.
When the user wants a first draft only, do not over-edit unrelated standards. Create the smallest useful standard or decomposed set that the team can review.
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
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.

