Repository Configuration & Content Quality Assessment
Note: This document predates several repository cleanups. Some recommendations refer to legacy artifacts that have since been removed or replaced by current agent-based workflows.
Scope: Qualitative review of configuration layers (core config, agents, instruction files, prompts, planning assets, engineering docs, templates) with redundancy, conflict, risk, and improvement guidance.
Status Legend:
Keep: High quality; only minor hygiene.
Refine: Improve clarity / structure / gaps.
Consolidate: Merge or unify with another file to remove duplication.
Deprecate: Remove or archive; low unique value.
1. Core Configuration Layer
File
Assessment
Issues / Risks
Recommendation
.github/copilot-instructions.md
Comprehensive anchor (branching, commits, standards, repo overview). Strong reinforcement (XML, Mermaid).
Duplicates coverage and workflow rules already present in other guidance. Repository overview partially overlaps with README.md and .github/README.github.md .
Refine: Trim “Repository Overview” (point to README). Establish it as single source of truth (SSOT) for: branching, commit, PR workflow, global quality gates.
README.md
Broad narrative, feature catalog, diagrams, best practices.
Overlaps with .github/copilot-instructions.md (methodology summaries) and some GitHub-configuration explanatory content.
Refine: Move “Best Practices” enforcement rules to a new “CONTRIBUTING.md” or keep here but reference as non-authoritative.
.github/README.github.md
GitHub config explainer; bridges discoverability.
Partial duplication of README sections (agents, instructions explanation).
Consolidate: Fold unique GitHub-specific notes into README; leave a short index stub or remove.
2. Legacy Artifact Cleanup
File
Assessment
Issues / Risks
Recommendation
Retired legacy artifacts
Historically carried rich persona and workflow guidance.
Duplicated branch, coverage, and template policy across multiple files.
Keep active guidance in agents and SSOT files only; do not reintroduce retired format artifacts.
Cross-Cutting Legacy Artifact Issues:
Redundant reproduction of templates (Doc mode vs docs.instructions).
Conflicting numerical targets (coverage).
Repeated branch/commit/PR size rules (should live centrally).
File
Assessment
Issues / Risks
Recommendation
.github/instructions/README.md
Explains frontmatter, purpose, style; concise.
Overlaps with agent authoring guidance.
Keep: Add “Instruction Authoring vs Agent Authoring” distinction.
backend.instructions.md
Sparse (context minimal).
Lacks language/framework specifics (e.g., error handling, logging, dependency injection patterns).
Refine: Add minimal canonical sections (Structure, Error policy, Observability, Security).
frontend.instructions.md
Better detail (performance, accessibility, process).
Coverage of testing defers implicitly to the Tester agent but not explicit.
Refine: Add explicit “Testing: refer to the Tester agent and bdd-tests instructions for layering.”
docs.instructions.md
Authoritative doc standards; duplicated in older documentation guidance.
Redundancy risk + future drift.
Keep as SSOT. Active documentation guidance should link here instead of duplicating lists.
bdd-tests.instructions.md
Skeleton present but light on concrete examples & anti‑patterns.
Not enough scenario examples (background/state management tagging) → risk of vague feature files.
Refine: Add 2 good vs bad scenario pairs; add naming conventions.
File
Assessment
Issues / Risks
Recommendation
write-adr.prompt.md
Structured; enforces sections.
Should reference central ADR template path explicitly if not already auto-linked.
Keep: Add “Validation: confirm file saved under docs/ADRs/ with timestamp/sequence.”
write-prd.prompt.md
Comprehensive; risk of becoming monolithic.
Ensure alignment with any emerging product doc standard (none central yet).
Refine: Extract success metrics pattern into reusable snippet.
write-docs.prompt.md
Duplicates doc structure & inputs again.
Duplication with docs.instructions and documentation guidance.
Consolidate: Replace embedded template with “Import from docs.instructions.md unless user overrides.”
write-ears-spec.prompt.md
(Not fully reviewed here—assumed similar structure).
Check for alignment with general docs instructions; add acceptance checks.
Refine (light).
copilot-setup-check.prompt.md
Strong evaluation phases & reporting structure.
Some overlap with recommendations now in this file.
Keep: Add link to Recommendations.MD; remove per-file best-practice duplication once central policy doc exists.
File
Assessment
Issues / Risks
Recommendation
plans/plan-template.md
Highly granular & machine-fillable (good).
Historically conflicted with earlier planning guidance on estimation style.
Refine: Decide single estimation model (duration or complexity scale).
plans/README.md
Lightweight orientation.
Could link explicitly to the template and authoring workflow.
Keep: Add explicit “Authoring workflow” link cluster.
plans/ROADMAP.md
Placeholder; minimal scaffolding.
Risk of abandonment / outdated signal.
Refine: Add status badges (Planned / In Progress / Done).
plans/TODO.md
Empty; mandated as single task source.
Zero structure invites misuse.
Refine: Add example format + ownership columns.
Archived Plan (enhance-copilot-instructions...)
Strong exemplar of full template usage.
Very large; could intimidate simple plan authors.
Keep: Tag as “Full Example (Comprehensive)” and add a “Lightweight example” file for small features.
6. Engineering & Documentation Files
File
Assessment
Issues / Risks
Recommendation
docs/engineering/code-review-guidelines.md
Clear principles & checklist.
Overlaps with review guidance that also appears elsewhere.
Consolidate: Make engineering doc SSOT for checklist; review guidance references it.
ADR / PRD / Design directories & templates
Provide structure (observed references).
Ensure each template states versioning / status fields.
Refine: Add “Status: proposed / accepted / superseded” line to ADR template if absent.
settings.json
Correctly wires PR + review instructions.
Could also include docs instructions for description generation?
Refine: Evaluate adding docs or plan template for broader context during PR drafting.
7. Conflict & Duplication Matrix (Key Hotspots)
Topic
Sources
Problem
Action
Test Coverage
Developer agent, Tester agent, central policy
Conflicting mandate risk
Create central quality policy (in copilot-instructions); agents reference it.
Documentation Workflow
docs.instructions, documentation guidance, write-docs.prompt
Triple duplication
Make docs.instructions canonical; others link and omit repeated lists.
Branch / PR Rules
copilot-instructions, Developer agent, Code Reviewer agent
Repetition & divergence risk
Centralize in copilot-instructions; remove verbose copies; keep brief reinforcement bullets.
Estimation Method
Planning guidance, plan-template
Policy inconsistency
Decide: adopt “duration” or “complexity scale + optional duration.” Update both.
Review Checklist
code-review-guidelines + review guidance
Duplicate responsibility list
Keep detailed checklist in guidelines; review guidance references it and only adds interpersonal rules.
Doc Templates
docs.instructions + write-docs.prompt + documentation guidance
Template drift risk
Single template in docs.instructions; prompt and guidance dynamically reference.
8. Proposed Authoritative Source Map (SSOT Designation)
Domain
SSOT File
Referencers (must link, not duplicate)
Workflow (branch, commits, PR)
.github/copilot-instructions.md
Developer / Code Reviewer agents
Documentation Structure & Process
.github/instructions/docs.instructions.md
Documentation agent + write-docs.prompt
Testing Quality & Coverage Policy
(New Section) in .github/copilot-instructions.md
Developer / Tester agents
Code Review Checklist
docs/engineering/code-review-guidelines.md
Code Reviewer agent
Plan Authoring Steps
plans/plan-template.md
Planning guidance
Agent Authoring Meta
.github/agents/README.md
(Referenced by contributors only)
Instruction Authoring Meta
.github/instructions/README.md
Any new instruction file
9. Priority Refactor Actions (Ordered)
Create unified “Quality & Coverage Policy” block in .github/copilot-instructions.md .
Remove duplicated doc template sections from documentation guidance and write-docs.prompt (link to docs.instructions).
Align estimation model between planning guidance and the plan template.
Extract branching / commit / PR numeric limits from implementation guidance (retain short reference lines only).
Consolidate code review checklist into the engineering guideline; trim duplication in review guidance.
Add structure & sample rows to plans/TODO.md .
Expand backend.instructions with concrete error handling & observability patterns.
Strengthen bdd-tests.instructions with scenario examples and anti-patterns.
Introduce lightweight “Small Feature Plan Example” in plans/ for contrast with full archived plan.
Add “Source Map” appendix to README linking SSOT designations.
10. Risk Register (Focused)
Risk
Impact
Likelihood
Mitigation
Policy Drift (coverage, docs workflow)
Confusion, inconsistent automation
Medium
SSOT map + lint CI to detect duplicated sections
Overly Prescriptive 100% Coverage
Slows delivery, superficial tests
High
Replace with tiered policy
Estimation Inconsistency
Planning misalignment
Medium
Single estimation policy decision
Template Divergence
Inconsistent ADR/PRD outputs
Low
Centralize template + checksum CI
Contributor Onboarding Overhead
Slower adoption
Medium
Add “Start Here” section referencing SSOT map
11. Suggested Structural Changes (Minimal Diffs Strategy)
Action
Change Type
Add /quality-policy anchor in copilot-instructions
Add section
Replace long duplicated lists in documentation guidance
Content reduction
Add “Coverage & Testing” reference note in Developer / Tester agents
Clarification
Add examples to bdd-tests.instructions
Enrichment
Add “Estimation Policy” subsection to plan-template and planning guidance
Harmonization
Introduce CONTRIBUTING.md (optional)
Optional consolidation
Expand backend.instructions minimal patterns
Enrichment
Enrich TODO.md with sample format
Activation
12. Example Unified Coverage Policy (Draft Text)
Principles:
Tiered Targets: Core domain ≥90%, Integrations ≥80%, Generated scaffolds opportunistic, Spikes exempt (must be tagged).
Quality > Percentage: Meaningful assertions, critical paths, error handling, security-relevant logic emphasized.
Enforcement: CI fails if global threshold (<85%) or any core module below target.
Exceptions: Require PR annotation “Coverage Exception:” with justification.
(Implement in .github/copilot-instructions.md ; reference everywhere else.)
13. File-Level Status Summary
File
Status
.github/copilot-instructions.md
Refine
README.md
Refine
.github/README.github.md
Consolidate
Legacy artifacts (removed)
Refine
.github/agents/README.md
Keep
instructions/README.md
Keep
backend.instructions.md
Refine
frontend.instructions.md
Refine
docs.instructions.md
Keep
bdd-tests.instructions.md
Refine
write-docs.prompt.md
Consolidate
write-adr.prompt.md
Keep
write-prd.prompt.md
Refine
write-ears-spec.prompt.md
Refine
copilot-setup-check.prompt.md
Keep
plans/plan-template.md
Refine
plans/README.md
Keep
plans/ROADMAP.md
Refine
plans/TODO.md
Refine
Archived plan (enhance-copilot-instructions...)
Keep
docs/engineering/code-review-guidelines.md
Consolidate
14. CI / Automation Opportunities
Tooling
Purpose
Markdown lint + Link checker
Prevent broken cross-references
Policy linter (XML tag presence)
Ensure required SSOT sections exist
Duplicate section detector (simple hash on canonical blocks)
Flag copied templates in agent guidance
Coverage tier enforcement script
Enforce unified quality policy
ADR/PRD template schema validator
Ensure required headings exist
Plan estimation checker
Validate chosen estimation model consistency
15. Immediate 5-Step Action Plan
Add unified quality & coverage policy to copilot-instructions.
Prune duplicated documentation template content (documentation guidance + write-docs prompt).
Resolve estimation model conflict and update planning guidance + plan-template accordingly.
Standardize review checklist location (engineering doc) and slim review guidance.
Expand backend + bdd-tests instruction specificity.
Quarterly SSOT audit (script compares referenced section hashes).
Changelog (add CHANGELOG.md) capturing material instruction/policy shifts.
New artifact rule: No new agent should restate templates; link to the SSOT instead.
Add “Policy Version: x.y.z” frontmatter field to copilot-instructions and agents for traceability.
Primary issues: Duplication (documentation workflow, coverage rules, branch process), conflicting numeric policies (coverage, estimation), and sparse backend / BDD guidance. Remedy through an authoritative source map, lean refactors that replace repetition with references, and a central quality policy. After changes, maintenance cost and drift risk decrease; onboarding clarity increases.
...existing code...