full-reverse-engineering
Skill0 starsChanged 2 months agoMITView on GitHub
Methodology reference for the repository-wide source-first reverse-engineering baseline. Full execution is controlled by .ai-engineering/workflows/full-reverse-engineering.yaml through /run-engineering-workflow.
In this repository33 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- adversarial-baseline-auditSkill
- architecture-drift-detectionSkill
- architecture-reconstruction-and-diagramsSkill
- artifact-detailed-designSkill
- baseline-source-of-truth-maintenanceSkill
- claim-verification-and-promotionSkill
- configuration-source-traceSkill
- contract-impact-test-designSkill
- current-state-tdd-synthesisSkill
- design-artifact-decompositionSkill
- design-artifact-decomposition-verificationSkill
- detailed-design-verificationSkill
- implementation-readiness-certificationSkill
- incident-root-cause-analysisSkill
- integration-selection-analysisSkill
- observability-traceability-analysisSkill
- patch-impact-reviewSkill
- persistence-schema-reverse-engineeringSkill
- post-readiness-adversarial-auditSkill
- regression-test-designSkill
- requirement-compliance-reviewSkill
- resolve-high-impact-unknownsSkill
- resume-reverse-engineeringSkill
- reverse-engineering-bootstrapSkill
- reverse-engineering-coverage-auditSkill
- run-engineering-workflowSkill
- runtime-binding-verificationSkill
- runtime-flow-analysisSkill
- technical-design-proposalSkill
- technical-design-verificationSkill
- wbs-generationSkill
- wbs-verificationSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 5 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Run it through /run-engineering-workflow.
- Very specific: line 26
do NOT generate helper prompts under .ai-engineering/prompts/.
- Very specific: line 27
do NOT generate helper workflows under .ai-engineering/workflows/.
- Very specific: line 28
do NOT generate or modify skills under .github/skills/.
- Very specific: line 29
do NOT modify .github/agents/ or .github/copilot-instructions.md.
- Distinctive: line 30
do NOT translate this skill into temporary workflow/prompt files.
- Distinctive: line 31
do NOT invoke slash sub-skills from this document.
- Distinctive: line 35
If a required methodology asset is missing, stop and report the missing asset.
- Distinctive: line 91
Every material finding is one of:
- Distinctive: line 101
Do not promote from filenames, class names, comments, or one representative path alone.
- Very specific: line 138
Run .ai-engineering/tools/validate-reverse-engineering-quality.py --artifact-root docs/reverse-engineering before final readiness.
≈ “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
Full Reverse Engineering — Methodology Reference
Purpose
Build a deep, source-backed CURRENT-system baseline from repository source plus runtime/config/test evidence when available.
The execution entry point is the existing declarative workflow:
.ai-engineering/workflows/full-reverse-engineering.yamlRun it through /run-engineering-workflow.
Critical Execution Boundary
This skill is not a nested-skill orchestrator.
During a reverse-engineering run:
- do NOT generate helper prompts under
.ai-engineering/prompts/; - do NOT generate helper workflows under
.ai-engineering/workflows/; - do NOT generate or modify skills under
.github/skills/; - do NOT modify
.github/agents/or.github/copilot-instructions.md; - do NOT translate this skill into temporary workflow/prompt files;
- do NOT invoke slash sub-skills from this document.
The workflow already names the existing skills to apply at each stage. Apply those skills directly to the repository evidence and write only the workflow-declared reverse-engineering artifacts/state.
If a required methodology asset is missing, stop and report the missing asset. Never synthesize a replacement during a repository analysis run.
Reasoning Model
DISCOVERY
→ candidate claims
→ source verification
→ counterexample search
→ scope isolation
→ data/config/binding/boundary closure
→ evidence promotion
→ adversarial coverage/readiness audit
→ canonical CURRENT baselineCurrent source and runtime/config evidence outrank generated Markdown.
Deliverable Quality Principle
A reverse-engineered baseline is not complete merely because claims are verified. It must reconstruct the system into an understandable model of responsibilities, dependencies, runtime flows, state, boundaries, variants, and failure behavior.
For a full backend baseline:
model > inventory
relationships > file counts
behavior > component names
diagrams > repeated prose
consumer usability > audit verbosityThe canonical consumer artifact is docs/reverse-engineering/CURRENT_STATE_TDD.md. The readiness audit is separate.
Core Analysis Obligations
The full workflow must cover, where applicable:
- repository/startup topology and inbound surfaces;
- representative runtime control flows;
- field/data provenance for externally meaningful values;
- integration selection and concrete runtime binding;
- configuration source, defaults, override precedence, and consumers;
- real external boundaries and boundary → exposure closure;
- persistence/schema/data lifecycle;
- validation/error/retry/fallback behavior;
- resource/session/cache/thread/async lifecycle when material;
- alternate implementations, modes, branches, legacy/fallback paths, and counterexamples;
- HIGH/CRITICAL unknown closure;
- adversarial verification and coverage audit;
- consumer-facing architecture synthesis;
- mandatory Mermaid system-context, component, runtime-sequence, integration-boundary, and state/persistence/lifecycle diagrams;
- a canonical Current-State TDD suitable as source-of-truth input to a later Design Agent.
Evidence Discipline
Every material finding is one of:
CANDIDATE
VERIFIED / PROMOTED
HYPOTHESIS
REJECTED / SUPERSEDED
UNKNOWN with explicit closure stateDo not promote from filenames, class names, comments, or one representative path alone.
For observable data claims, trace:
trigger
→ source/retrieval
→ parse/transform
→ mapping/state
→ serialization/output
→ observable effectFor integration exposure claims, trace:
boundary
← invocation sites
← caller chains
← external entry points or proven internal rootsReadiness
BASELINE_READY is allowed only when source-resolvable HIGH/CRITICAL gaps and material adversarial contradictions are zero and the consumer-quality contract passes.
Consumer-quality minimum for full baseline:
mandatory diagram artifacts = 5/5
material subsystem modeling = 100%
known integration boundary modeling = 100%
behavior-changing configuration classification = 100%
material evidence paths present = 100%
blocking unknowns = 0Run .ai-engineering/tools/validate-reverse-engineering-quality.py --artifact-root docs/reverse-engineering before final readiness.
BASELINE_READY is allowed only when source-resolvable HIGH/CRITICAL gaps and material adversarial contradictions are zero.
BASELINE_READY_WITH_EXTERNAL_BLOCKERS is allowed only when every remaining HIGH/CRITICAL item is evidence-backed as externally blocked.
Otherwise use NOT_READY_HIGH_IMPACT_GAPS or PARTIAL_RESUMABLE.
Runtime Output Boundary
Repository analysis writes reverse-engineering results under the workflow-declared docs/reverse-engineering/... paths only.
.ai-engineering/ and .github/ are methodology infrastructure and are read-only during normal reverse-engineering execution.
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.

