Legacy friendly contextualisation: Describe -> Discover -> Unify -> Spec #342
rafaelcalves
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I loved the way Agent-OS guides the user through the process of discovering standards but I missed a command to really gather existing information about a legacy project that needs contextualisation.
I've designed this tools to implement agent-os like features on a legacy system. I'm sharing it to maybe incorporate them into a new version:
https://github.com/rafaelcalves/agent-discovery-tools
Overview
The toolkit consists of four core skills that should be executed in order:
AGENTS.md+ARCHITECTURE.mdper module.agents/rules/standards/per module.agents/rules/standards/.agents/local/specs/Each skill builds on the output of the previous one — describe gives the AI context about what exists, discover captures how your team writes code, unify promotes the best patterns across projects, and shape leverages all of that to plan new work.
Simplified View (Linear)
For a quick mental model, the flow is:
The Four Core Skills
1. Describe Architecture
What it does: Generates
AGENTS.md(agent configuration) andARCHITECTURE.md(technical documentation) for each microservice/module by analyzing code and pulling context from Confluence and Jira.When to run: First. Run once per module to establish a baseline.
Trigger phrases:
What it produces:
2. Discover Standards
What it does: Reads representative code files in a focus area (API, domain, testing, etc.), identifies patterns that are unusual, opinionated, or tribal, and writes them as concise standard files.
When to run: After describe. Run per module, per focus area.
Trigger phrases:
What it produces:
3. Unify Standards
What it does: Scans all per-module standards, scores them by usage/simplicity/distinctiveness, groups similar rules across projects, and merges them into shared org-wide standards at the root level.
When to run: After you've discovered standards in at least 2+ modules.
Trigger phrases:
What it produces:
4. Shape Spec
What it does: Gathers context from
.agents/directories, Jira, and Confluence to plan and structure a feature spec before implementation begins. Reads architecture docs, relevant standards, and reference implementations to create an actionable plan.When to run: When starting significant new work. Requires plan mode in Copilot.
Trigger phrases:
What it produces:
Beta Was this translation helpful? Give feedback.
All reactions