一键导入
paved-road-registry
Discovers and records repo-local approved build paths so agents reuse proven patterns instead of inventing parallel architectures.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Discovers and records repo-local approved build paths so agents reuse proven patterns instead of inventing parallel architectures.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Orchestration skill: chains the full ADLC Build Loop. PRD → Brief → Council → Scaffold → Codegen → LDD → TDD → Council → PR. Use when implementing a new feature end-to-end.
Generate a bounded, schema-valid goal prompt from one validated Build Brief task for zero-context external execution.
Applicability-aware Definition of Done checklist. Core checks apply to every task; overlay checks activate only when the applicability manifest says the surface exists. Binary verification — pass or fail. Triggers at Phase 4 completion and Phase 5 entry.
Score whether each task is specific enough for autonomous, one-shot, production-ready execution.
Reviews code changes for understanding, blast radius, state, secrets, assumptions, and explainability. Produces a blocking comprehension artifact when implications are unclear.
Resolve ambiguous triage outcomes in the middle confidence band.
| name | paved-road-registry |
| description | Discovers and records repo-local approved build paths so agents reuse proven patterns instead of inventing parallel architectures. |
| contract_version | 1.0.0 |
| side_effect_profile | read_only |
| activation | {"mode":"core","consumes_manifest":true,"produces":["paved_road_candidates","paved_road_refs","paved_road_gaps"]} |
AI-generated code scales when agents build with the repo's proven patterns. This skill discovers those patterns, names where they apply, and records when no paved road exists.
Use this skill to keep monoliths and large codebases consistent as agent throughput increases. It complements reuse-analysis: reuse analysis finds concrete things not to reimplement; paved-road registry captures the broader build contract agents should follow.
The structural pattern registry lives at skills/paved-road-registry/patterns.json and is schema-validated by docs/schemas/paved-road-pattern-registry.schema.json. Use bin/adlc paved-road-patterns --json to list approved patterns, and bin/adlc paved-road-patterns --pattern-id <id> --json to inspect one pattern with its merged exemplar repo/path/commit and real file structure.
approved, preferred, deprecated, or no_paved_road_found.implementation_interface_contract, map the paved road into the contract's reuse, integration points, invariants, and validation gates.Discovery records may describe any paved road. Structural pattern records are stored in patterns.json so the runtime can generate module_plan from an approved pattern.
{
"id": "string",
"capability": "string",
"status": "approved | preferred | deprecated | no_paved_road_found",
"reference_impl": "path:line | path | null",
"applies_when": ["string"],
"do_not_reimplement": ["string"],
"required_invariants": ["string"],
"verifiers": ["path | command | schema | fixture"],
"allowed_departure": "string",
"evidence": ["path:line | command output | graph query"]
}
The first approved pattern is interralis:evidence-module, backed by Interralis PR #225 at commit acad66428a1b5c872a5796cb779787f7d39403a3. Its exemplar path is github.com/interralis/interralis:src/observability/ingestion/harness_sources, with the architecture test at tests/integration/harness_metadata_architecture.rs.
When a task cites pattern:interralis:evidence-module or skill:paved-road-registry#interralis:evidence-module in paved_road_refs, bin/adlc module-plan-check can generate the required module_plan from the pattern. Include ?module_root=path/to/module on the ref, or list pattern-shaped files in files_to_create, so the runtime can fill the template paths. A task that intentionally departs from the matched pattern must include module_plan.pattern_deviation_reason.
Registering a new structural pattern after human approval is cheap:
skills/paved-road-registry/patterns.json with a stable ID, merged exemplar repo/path/commit, exemplar structure, module_plan_template, and allowed_departure.bin/adlc validate-artifact --schema paved-road-pattern-registry --input skills/paved-road-registry/patterns.json --json.bin/adlc paved-road-patterns --pattern-id <id> --json.{
"paved_road_candidates": [
{
"id": "string",
"capability": "string",
"status": "approved | preferred | deprecated | no_paved_road_found",
"reference_impl": "string | null",
"applies_when": [],
"do_not_reimplement": [],
"required_invariants": [],
"verifiers": [],
"allowed_departure": "string",
"evidence": []
}
],
"paved_road_gaps": [
{
"capability": "string",
"gap": "string",
"risk": "string",
"evidence": []
}
],
"recommended_task_refs": [
{
"task_id": "string",
"paved_road_refs": [],
"matched_structural_pattern": "pattern id | null",
"generated_module_plan": {},
"implementation_interface_contract": {},
"departure_requires_review": true
}
]
}
not_applicable when no code path or build pattern changes.no_paved_road_found result explains the search path and closest convention.pattern_deviation_reason.Remove this discovery skill when models consistently infer repo-local build paths and reuse them without explicit guidance. Keep a smaller verification gate that detects duplicated or inconsistent patterns.