mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 22:06:30 +00:00
2.1 KiB
2.1 KiB
Usage Examples — Reference
Example 1: Initial Research (Mode A)
User: Research this problem and find the best solution
Execution flow:
- Context resolution: no explicit file -> project mode (INPUT_DIR=
_docs/00_problem/, OUTPUT_DIR=_docs/01_solution/) - Guardrails: verify INPUT_DIR exists with required files
- Mode detection: no
solution_draft*.md-> Mode A - Phase 1: Assess acceptance criteria and restrictions, ask user about unclear parts
- BLOCKING: present AC assessment, wait for user confirmation
- Phase 2: Full 8-step research — competitors, components, state-of-the-art solutions
- Output:
OUTPUT_DIR/solution_draft01.md - (Optional) Phase 3: Tech stack consolidation ->
tech_stack.md - (Optional) Phase 4: Security deep dive ->
security_analysis.md
Example 2: Solution Assessment (Mode B)
User: Assess the current solution draft
Execution flow:
- Context resolution: no explicit file -> project mode
- Guardrails: verify INPUT_DIR exists
- Mode detection:
solution_draft03.mdfound in OUTPUT_DIR -> Mode B, read it as input - Full 8-step research — weak points, security, performance, solutions
- Output:
OUTPUT_DIR/solution_draft04.mdwith findings table + revised draft
Example 3: Standalone Research
User: /research @my_problem.md
Execution flow:
- Context resolution: explicit file -> standalone mode (INPUT_FILE=
my_problem.md, OUTPUT_DIR=_standalone/my_problem/01_solution/) - Guardrails: verify INPUT_FILE exists and is non-empty, warn about missing restrictions/AC
- Mode detection + full research flow as in Example 1, scoped to standalone paths
- Output:
_standalone/my_problem/01_solution/solution_draft01.md - Move
my_problem.mdinto_standalone/my_problem/
Example 4: Force Initial Research (Override)
User: Research from scratch, ignore existing drafts
Execution flow:
- Context resolution: no explicit file -> project mode
- Mode detection: drafts exist, but user explicitly requested initial research -> Mode A
- Phase 1 + Phase 2 as in Example 1
- Output:
OUTPUT_DIR/solution_draft##.md(incremented from highest existing)