Doc Research and Improvement (GPT-5.2)
Use this skill to analyze a single doc (architecture or idea), research its referenced concepts,
and propose improvements with external sources and implementation candidates.
Input Parameters
| Parameter |
Description |
Required |
doc_path |
Path to the doc to analyze. |
Required (unless doc_text) |
doc_text |
Raw doc content if not reading from file. |
Optional |
focus_areas |
Comma list: architecture, data-model, orchestration, security, observability, testing, UX, scaling, cost. |
Optional |
depth |
quick (top 3 items) or standard (top 5-8 items). |
Optional |
constraints |
Explicit constraints to respect (ex: local-first, SQLite, no background jobs). |
Optional |
Repository Context (Align To)
These are core assumptions from docs/site/architecture/* and docs/site/ideas/*:
- Amelia is a local-first, agentic coding orchestrator with LangGraph, FastAPI, and SQLite.
- Primary workflow: Architect -> Developer -> Reviewer with human approval gates.
- Design principles: structured handoffs, verify before done, environment as truth.
- Drivers and trackers are pluggable abstractions.
- Ideas are exploratory; suggest improvements without assuming commitment.
Use these as guardrails when proposing changes.
Required Workflow
Ingest and summarize the doc
- Identify goals, scope, non-goals, and assumptions.
- Note dependencies on current architecture or roadmap phases.
Extract concepts, frameworks, and techniques
- List all explicit or implied frameworks (ex: LangGraph, RAG, SOX/ICFR, BDD).
- Classify each as architecture, process, data, evaluation, or UI.
Research and validate
- Use authoritative sources: specs, official docs, standards, reputable research.
- Capture at least 1 source per key concept. If none, label as hypothesis.
- Summarize evidence in 1-2 lines with citations.
Propose improvements
- Prioritize items by impact and feasibility.
- Provide rationale tied to evidence and Amelia constraints.
- Include tradeoffs and risks.
- Call out where changes touch existing modules (ex:
amelia/core/, amelia/server/).
Recommend OSS candidates
- Suggest open-source libraries or frameworks needed to implement changes.
- Include license, maturity, and integration notes.
- Prefer Python 3.12, FastAPI, React, SQLite compatible stacks.
Output Format
Doc Snapshot
- Goal, scope, non-goals, assumptions
Extracted Concepts
| Concept | Category | Why it matters | Sources |
Evidence and Research Notes
- Bullet list of sources with 1-line relevance
Improvements (Ranked)
- Title
- Rationale + evidence (cite)
- Tradeoffs/risks
- Implementation notes (files/modules)
OSS and Framework Candidates
| Need | Options | License | Why it fits |
Open Questions
- Any missing inputs or decisions required
Guardrails
- Do not contradict architecture principles unless the doc explicitly proposes it.
- If the doc is exploratory, frame improvements as experiments or phased probes.
- Avoid proprietary SaaS recommendations unless the doc already assumes them.
- No hallucinated citations; if unsure, say so and suggest verification.
1---2name: doc-research-improvements3description: Research-driven critique and enhancement of Amelia architecture or ideas docs. Use with GPT-5.2 when given a design/architecture doc to analyze concepts, find sources, and propose improvements plus OSS candidates.4---5
6# Doc Research and Improvement (GPT-5.2)
7
8Use this skill to analyze a single doc (architecture or idea), research its referenced concepts,
9and propose improvements with external sources and implementation candidates.
10
11## Input Parameters
12
13| Parameter | Description | Required |
14|---|---|---|
15| `doc_path` | Path to the doc to analyze. | Required (unless `doc_text`) |
16| `doc_text` | Raw doc content if not reading from file. | Optional |
17| `focus_areas` | Comma list: architecture, data-model, orchestration, security, observability, testing, UX, scaling, cost. | Optional |
18| `depth` | `quick` (top 3 items) or `standard` (top 5-8 items). | Optional |
19| `constraints` | Explicit constraints to respect (ex: local-first, SQLite, no background jobs). | Optional |
20
21## Repository Context (Align To)
22
23These are core assumptions from `docs/site/architecture/*` and `docs/site/ideas/*`:
24
25- Amelia is a local-first, agentic coding orchestrator with LangGraph, FastAPI, and SQLite.
26- Primary workflow: Architect -> Developer -> Reviewer with human approval gates.
27- Design principles: structured handoffs, verify before done, environment as truth.
28- Drivers and trackers are pluggable abstractions.
29- Ideas are exploratory; suggest improvements without assuming commitment.
30
31Use these as guardrails when proposing changes.
32
33## Required Workflow
34
351. **Ingest and summarize the doc**
36 - Identify goals, scope, non-goals, and assumptions.
37 - Note dependencies on current architecture or roadmap phases.
38
392. **Extract concepts, frameworks, and techniques**
40 - List all explicit or implied frameworks (ex: LangGraph, RAG, SOX/ICFR, BDD).
41 - Classify each as architecture, process, data, evaluation, or UI.
42
433. **Research and validate**
44 - Use authoritative sources: specs, official docs, standards, reputable research.
45 - Capture at least 1 source per key concept. If none, label as hypothesis.
46 - Summarize evidence in 1-2 lines with citations.
47
484. **Propose improvements**
49 - Prioritize items by impact and feasibility.
50 - Provide rationale tied to evidence and Amelia constraints.
51 - Include tradeoffs and risks.
52 - Call out where changes touch existing modules (ex: `amelia/core/`, `amelia/server/`).
53
545. **Recommend OSS candidates**
55 - Suggest open-source libraries or frameworks needed to implement changes.
56 - Include license, maturity, and integration notes.
57 - Prefer Python 3.12, FastAPI, React, SQLite compatible stacks.
58
59## Output Format
60
61**Doc Snapshot**
62- Goal, scope, non-goals, assumptions
63
64**Extracted Concepts**
65| Concept | Category | Why it matters | Sources |
66
67**Evidence and Research Notes**
68- Bullet list of sources with 1-line relevance
69
70**Improvements (Ranked)**
711. Title
72 - Rationale + evidence (cite)
73 - Tradeoffs/risks
74 - Implementation notes (files/modules)
75
76**OSS and Framework Candidates**
77| Need | Options | License | Why it fits |
78
79**Open Questions**
80- Any missing inputs or decisions required
81
82## Guardrails
83
84- Do not contradict architecture principles unless the doc explicitly proposes it.
85- If the doc is exploratory, frame improvements as experiments or phased probes.
86- Avoid proprietary SaaS recommendations unless the doc already assumes them.
87- No hallucinated citations; if unsure, say so and suggest verification.