@tgoodington/intuition 8.1.3 → 9.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/docs/project_notes/.project-memory-state.json +100 -0
- package/docs/project_notes/branches/.gitkeep +0 -0
- package/docs/project_notes/bugs.md +41 -0
- package/docs/project_notes/decisions.md +147 -0
- package/docs/project_notes/issues.md +101 -0
- package/docs/project_notes/key_facts.md +88 -0
- package/docs/project_notes/trunk/.gitkeep +0 -0
- package/docs/project_notes/trunk/.planning_research/decision_file_naming.md +15 -0
- package/docs/project_notes/trunk/.planning_research/decisions_log.md +32 -0
- package/docs/project_notes/trunk/.planning_research/orientation.md +51 -0
- package/docs/project_notes/trunk/audit/plan-rename-hitlist.md +654 -0
- package/docs/project_notes/trunk/blueprint-conflicts.md +109 -0
- package/docs/project_notes/trunk/blueprints/database-architect.md +416 -0
- package/docs/project_notes/trunk/blueprints/devops-infrastructure.md +514 -0
- package/docs/project_notes/trunk/blueprints/technical-writer.md +788 -0
- package/docs/project_notes/trunk/build_brief.md +119 -0
- package/docs/project_notes/trunk/build_report.md +250 -0
- package/docs/project_notes/trunk/detail_brief.md +94 -0
- package/docs/project_notes/trunk/plan.md +182 -0
- package/docs/project_notes/trunk/planning_brief.md +96 -0
- package/docs/project_notes/trunk/prompt_brief.md +60 -0
- package/docs/project_notes/trunk/prompt_output.json +98 -0
- package/docs/project_notes/trunk/scratch/database-architect-decisions.json +72 -0
- package/docs/project_notes/trunk/scratch/database-architect-research-plan.md +10 -0
- package/docs/project_notes/trunk/scratch/database-architect-stage1.md +226 -0
- package/docs/project_notes/trunk/scratch/devops-infrastructure-decisions.json +71 -0
- package/docs/project_notes/trunk/scratch/devops-infrastructure-research-plan.md +7 -0
- package/docs/project_notes/trunk/scratch/devops-infrastructure-stage1.md +164 -0
- package/docs/project_notes/trunk/scratch/technical-writer-decisions.json +88 -0
- package/docs/project_notes/trunk/scratch/technical-writer-research-plan.md +7 -0
- package/docs/project_notes/trunk/scratch/technical-writer-stage1.md +266 -0
- package/docs/project_notes/trunk/team_assignment.json +108 -0
- package/docs/project_notes/trunk/test_brief.md +75 -0
- package/docs/project_notes/trunk/test_report.md +26 -0
- package/docs/project_notes/trunk/verification/devops-infrastructure-verification.md +172 -0
- package/docs/v9/decision-framework-direction.md +142 -0
- package/docs/v9/decision-framework-implementation.md +114 -0
- package/docs/v9/domain-adaptive-team-architecture.md +1016 -0
- package/docs/v9/test/SESSION_SUMMARY.md +117 -0
- package/docs/v9/test/TEST_PLAN.md +119 -0
- package/docs/v9/test/blueprints/legal-analyst.md +166 -0
- package/docs/v9/test/output/07_cover_letter.md +41 -0
- package/docs/v9/test/phase2/mock_plan.md +89 -0
- package/docs/v9/test/phase2/producers.json +32 -0
- package/docs/v9/test/phase2/specialists/database-architect.specialist.md +10 -0
- package/docs/v9/test/phase2/specialists/financial-analyst.specialist.md +10 -0
- package/docs/v9/test/phase2/specialists/legal-analyst.specialist.md +10 -0
- package/docs/v9/test/phase2/specialists/technical-writer.specialist.md +10 -0
- package/docs/v9/test/phase2/team_assignment.json +61 -0
- package/docs/v9/test/phase3/blueprints/legal-analyst.md +840 -0
- package/docs/v9/test/phase3/legal-analyst-full.specialist.md +111 -0
- package/docs/v9/test/phase3/project_context/nh_landlord_tenant_notes.md +35 -0
- package/docs/v9/test/phase3/project_context/property_facts.md +32 -0
- package/docs/v9/test/phase3b/blueprints/legal-analyst.md +1715 -0
- package/docs/v9/test/phase3b/legal-analyst.specialist.md +153 -0
- package/docs/v9/test/phase3b/scratch/legal-analyst-stage1.md +270 -0
- package/docs/v9/test/phase4/TEST_PLAN.md +32 -0
- package/docs/v9/test/phase4/blueprints/financial-analyst-T2.md +538 -0
- package/docs/v9/test/phase4/blueprints/legal-analyst-T4.md +253 -0
- package/docs/v9/test/phase4/cross-blueprint-check.md +280 -0
- package/docs/v9/test/phase4/scratch/financial-analyst-T2-stage1.md +67 -0
- package/docs/v9/test/phase4/scratch/legal-analyst-T4-stage1.md +54 -0
- package/docs/v9/test/phase4/specialists/financial-analyst.specialist.md +156 -0
- package/docs/v9/test/phase4/specialists/legal-analyst.specialist.md +153 -0
- package/docs/v9/test/phase5/TEST_PLAN.md +35 -0
- package/docs/v9/test/phase5/blueprints/code-architect-hw-vetter.md +375 -0
- package/docs/v9/test/phase5/output/04_compliance_checklist.md +149 -0
- package/docs/v9/test/phase5/output/hardware-vetter-SKILL-v2.md +561 -0
- package/docs/v9/test/phase5/output/hardware-vetter-SKILL.md +459 -0
- package/docs/v9/test/phase5/producers/code-writer.producer.md +49 -0
- package/docs/v9/test/phase5/producers/document-writer.producer.md +62 -0
- package/docs/v9/test/phase5/regression-comparison-v2.md +60 -0
- package/docs/v9/test/phase5/regression-comparison.md +197 -0
- package/docs/v9/test/phase5/review-5A-specialist.md +213 -0
- package/docs/v9/test/phase5/specialist-test/TEST_PLAN.md +60 -0
- package/docs/v9/test/phase5/specialist-test/blueprint-comparison.md +252 -0
- package/docs/v9/test/phase5/specialist-test/blueprints/code-architect-hw-vetter.md +916 -0
- package/docs/v9/test/phase5/specialist-test/scratch/code-architect-stage1.md +427 -0
- package/docs/v9/test/phase5/specialists/code-architect.specialist.md +168 -0
- package/docs/v9/test/phase5b/TEST_PLAN.md +219 -0
- package/docs/v9/test/phase5b/blueprints/5B-10-stage2-with-decisions.md +286 -0
- package/docs/v9/test/phase5b/decisions/5B-2-accept-all-decisions.json +68 -0
- package/docs/v9/test/phase5b/decisions/5B-3-promote-decisions.json +70 -0
- package/docs/v9/test/phase5b/decisions/5B-4-individual-decisions.json +68 -0
- package/docs/v9/test/phase5b/decisions/5B-5-triage-decisions.json +110 -0
- package/docs/v9/test/phase5b/decisions/5B-6-fallback-decisions.json +40 -0
- package/docs/v9/test/phase5b/decisions/5B-8-partial-decisions.json +46 -0
- package/docs/v9/test/phase5b/decisions/5B-9-complete-decisions.json +54 -0
- package/docs/v9/test/phase5b/scratch/code-architect-stage1.md +133 -0
- package/docs/v9/test/phase5b/specialists/code-architect.specialist.md +202 -0
- package/docs/v9/test/phase5b/stage1-many-decisions.md +139 -0
- package/docs/v9/test/phase5b/stage1-no-assumptions.md +70 -0
- package/docs/v9/test/phase5b/stage1-with-assumptions.md +86 -0
- package/docs/v9/test/phase5b/test-5B-1-results.md +157 -0
- package/docs/v9/test/phase5b/test-5B-10-results.md +130 -0
- package/docs/v9/test/phase5b/test-5B-2-results.md +75 -0
- package/docs/v9/test/phase5b/test-5B-3-results.md +104 -0
- package/docs/v9/test/phase5b/test-5B-4-results.md +114 -0
- package/docs/v9/test/phase5b/test-5B-5-results.md +126 -0
- package/docs/v9/test/phase5b/test-5B-6-results.md +60 -0
- package/docs/v9/test/phase5b/test-5B-7-results.md +141 -0
- package/docs/v9/test/phase5b/test-5B-8-results.md +115 -0
- package/docs/v9/test/phase5b/test-5B-9-results.md +76 -0
- package/docs/v9/test/producers/document-writer.producer.md +62 -0
- package/docs/v9/test/specialists/legal-analyst.specialist.md +58 -0
- package/package.json +4 -2
- package/producers/code-writer/code-writer.producer.md +86 -0
- package/producers/data-file-writer/data-file-writer.producer.md +116 -0
- package/producers/document-writer/document-writer.producer.md +117 -0
- package/producers/form-filler/form-filler.producer.md +99 -0
- package/producers/presentation-creator/presentation-creator.producer.md +109 -0
- package/producers/spreadsheet-builder/spreadsheet-builder.producer.md +107 -0
- package/scripts/install-skills.js +97 -9
- package/scripts/uninstall-skills.js +7 -2
- package/skills/intuition-agent-advisor/SKILL.md +327 -220
- package/skills/intuition-assemble/SKILL.md +261 -0
- package/skills/intuition-build/SKILL.md +379 -319
- package/skills/intuition-debugger/SKILL.md +390 -390
- package/skills/intuition-design/SKILL.md +385 -381
- package/skills/intuition-detail/SKILL.md +377 -0
- package/skills/intuition-engineer/SKILL.md +307 -303
- package/skills/intuition-handoff/SKILL.md +264 -222
- package/skills/intuition-handoff/references/handoff_core.md +54 -54
- package/skills/intuition-initialize/SKILL.md +21 -6
- package/skills/intuition-initialize/references/agents_template.md +118 -118
- package/skills/intuition-initialize/references/claude_template.md +134 -134
- package/skills/intuition-initialize/references/intuition_readme_template.md +4 -4
- package/skills/intuition-initialize/references/state_template.json +17 -2
- package/skills/{intuition-plan → intuition-outline}/SKILL.md +561 -481
- package/skills/{intuition-plan → intuition-outline}/references/magellan_core.md +16 -16
- package/skills/{intuition-plan → intuition-outline}/references/templates/plan_template.md +6 -6
- package/skills/intuition-prompt/SKILL.md +374 -312
- package/skills/intuition-start/SKILL.md +46 -13
- package/skills/intuition-start/references/start_core.md +60 -60
- package/skills/intuition-test/SKILL.md +345 -0
- package/specialists/api-designer/api-designer.specialist.md +291 -0
- package/specialists/business-analyst/business-analyst.specialist.md +270 -0
- package/specialists/copywriter/copywriter.specialist.md +268 -0
- package/specialists/database-architect/database-architect.specialist.md +275 -0
- package/specialists/devops-infrastructure/devops-infrastructure.specialist.md +314 -0
- package/specialists/financial-analyst/financial-analyst.specialist.md +269 -0
- package/specialists/frontend-component/frontend-component.specialist.md +293 -0
- package/specialists/instructional-designer/instructional-designer.specialist.md +285 -0
- package/specialists/legal-analyst/legal-analyst.specialist.md +260 -0
- package/specialists/marketing-strategist/marketing-strategist.specialist.md +281 -0
- package/specialists/project-manager/project-manager.specialist.md +266 -0
- package/specialists/research-analyst/research-analyst.specialist.md +273 -0
- package/specialists/security-auditor/security-auditor.specialist.md +354 -0
- package/specialists/technical-writer/technical-writer.specialist.md +275 -0
- /package/skills/{intuition-plan → intuition-outline}/references/sub_agents.md +0 -0
- /package/skills/{intuition-plan → intuition-outline}/references/templates/confidence_scoring.md +0 -0
- /package/skills/{intuition-plan → intuition-outline}/references/templates/plan_format.md +0 -0
- /package/skills/{intuition-plan → intuition-outline}/references/templates/planning_process.md +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Legal Analyst — Task 4 Stage 1 (Light Mode)
|
|
2
|
+
|
|
3
|
+
## Research Findings
|
|
4
|
+
|
|
5
|
+
### Concord NH Landlord Registration
|
|
6
|
+
- Concord requires landlord/agent registration with City Clerk's Office ($15 fee)
|
|
7
|
+
- Form filed at 41 Green Street, Concord NH 03301
|
|
8
|
+
- Not all property owners required — depends on whether out-of-state or using agent
|
|
9
|
+
|
|
10
|
+
### Building Permits & Certificate of Occupancy
|
|
11
|
+
- ADU construction requires building permit from Code Administration Division (37 Green St)
|
|
12
|
+
- Separate permits needed: building, electrical, plumbing, mechanical
|
|
13
|
+
- Certificate of Occupancy issued after all inspections pass
|
|
14
|
+
- Specific fee amounts not published online — calculated per project based on construction cost
|
|
15
|
+
- Fire inspection available through online permit portal (eff. 7/1/2025)
|
|
16
|
+
|
|
17
|
+
### Lead Paint (Critical — 1971 Structure)
|
|
18
|
+
- Pre-1978 property: federal EPA lead paint disclosure required (RSA 540-B)
|
|
19
|
+
- Must provide EPA pamphlet "Protect Your Family from Lead in Your Home"
|
|
20
|
+
- Signed disclosure form retained 3 years
|
|
21
|
+
- RRP (Renovation, Repair, Painting) rule: certified firm required for renovation work
|
|
22
|
+
|
|
23
|
+
### Fire Safety
|
|
24
|
+
- NH RSA 153:10a — carbon monoxide detectors required on every level
|
|
25
|
+
- Smoke detectors required
|
|
26
|
+
- Fire separation between ADU and primary residence mandatory
|
|
27
|
+
- Concord Fire Dept inspection available via permit portal
|
|
28
|
+
|
|
29
|
+
### Insurance
|
|
30
|
+
- No NH state law mandating landlord insurance
|
|
31
|
+
- Strongly recommended: landlord/rental property policy (structure, liability, loss of income)
|
|
32
|
+
- Renter's insurance requirement can be written into lease
|
|
33
|
+
|
|
34
|
+
### Housing Code
|
|
35
|
+
- Concord Chapter 27: Housing Maintenance and Occupancy Code
|
|
36
|
+
- Complaint-based enforcement (not mandatory pre-rental inspection program found)
|
|
37
|
+
- Must comply with standards for ventilation, sanitation, fire safety, structural integrity
|
|
38
|
+
|
|
39
|
+
### ADU-Specific
|
|
40
|
+
- Concord owner-occupancy note: backyardadus.com states owner must occupy one unit, but property_facts.md states "no owner-occupancy requirement" — owners live on-site regardless, so moot for this property
|
|
41
|
+
- Sewage system approval required (RSA 485-A)
|
|
42
|
+
- Fire separation between units mandatory
|
|
43
|
+
- No more than 2 bedrooms, max 1,500 sq ft
|
|
44
|
+
|
|
45
|
+
## Proposed Approach
|
|
46
|
+
|
|
47
|
+
Organize the compliance checklist into 5 categories:
|
|
48
|
+
1. **Pre-Construction Permits** — building permit, trade permits, ZBA variance (already done)
|
|
49
|
+
2. **Construction Completion** — inspections, certificate of occupancy
|
|
50
|
+
3. **Landlord Registration & Disclosures** — city registration, lead paint, security deposit
|
|
51
|
+
4. **Safety Compliance** — smoke/CO detectors, fire separation, egress
|
|
52
|
+
5. **Insurance & Ongoing** — landlord insurance, housing code compliance, record-keeping
|
|
53
|
+
|
|
54
|
+
Each item gets: description, issuing authority, status (required/recommended/optional), estimated timeline, estimated fee, and notes. Items that cannot be confirmed from available context get [VERIFY] flags.
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: financial-analyst
|
|
3
|
+
display_name: Financial Analyst
|
|
4
|
+
domain: financial
|
|
5
|
+
description: >
|
|
6
|
+
Analyzes financial data, market conditions, pricing strategies,
|
|
7
|
+
and expense structures. Produces blueprints for financial models,
|
|
8
|
+
analyses, and tracking instruments.
|
|
9
|
+
|
|
10
|
+
exploration_methodology: ECD
|
|
11
|
+
supported_depths: [Deep, Standard, Light]
|
|
12
|
+
default_depth: Standard
|
|
13
|
+
|
|
14
|
+
research_patterns:
|
|
15
|
+
- "Find all financial reference documents and market data"
|
|
16
|
+
- "Locate existing budgets, projections, or financial models"
|
|
17
|
+
- "Identify pricing constraints and revenue targets"
|
|
18
|
+
- "Map expense categories and cost drivers"
|
|
19
|
+
- "Find comparable market data points"
|
|
20
|
+
|
|
21
|
+
blueprint_sections:
|
|
22
|
+
- "Market Context"
|
|
23
|
+
- "Data Sources"
|
|
24
|
+
- "Methodology"
|
|
25
|
+
- "Analysis Framework"
|
|
26
|
+
- "Deliverable Structure"
|
|
27
|
+
|
|
28
|
+
default_producer: spreadsheet-builder
|
|
29
|
+
default_output_format: csv
|
|
30
|
+
|
|
31
|
+
review_criteria:
|
|
32
|
+
- "All data claims supported by cited sources or flagged as estimates"
|
|
33
|
+
- "Calculations internally consistent"
|
|
34
|
+
- "Assumptions explicitly stated and reasonable"
|
|
35
|
+
- "Comparable selection criteria documented"
|
|
36
|
+
- "Recommendations justified with evidence"
|
|
37
|
+
- "Output format matches producer requirements"
|
|
38
|
+
mandatory_reviewers: []
|
|
39
|
+
|
|
40
|
+
model: opus
|
|
41
|
+
reviewer_model: sonnet
|
|
42
|
+
tools: [Read, Write, Glob, Grep, Task, AskUserQuestion]
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
# Financial Analyst
|
|
46
|
+
|
|
47
|
+
## Stage 1: Exploration Protocol
|
|
48
|
+
|
|
49
|
+
You are a financial analyst conducting exploration for a financial analysis task. Your job is to research the project context, explore the problem space using ECD, and produce a structured findings document for the orchestrator to present to the user.
|
|
50
|
+
|
|
51
|
+
### Research Phase
|
|
52
|
+
First, read all project context files provided to you. Extract:
|
|
53
|
+
- Financial targets and constraints
|
|
54
|
+
- Market data and comparable sources
|
|
55
|
+
- Existing financial documents or models
|
|
56
|
+
- Dependencies on other project tasks
|
|
57
|
+
|
|
58
|
+
### ECD Exploration
|
|
59
|
+
|
|
60
|
+
**Elements (E)** — What are the building blocks?
|
|
61
|
+
- What data points are needed?
|
|
62
|
+
- What financial instruments or models are required?
|
|
63
|
+
- What assumptions must be defined?
|
|
64
|
+
- What comparable benchmarks exist?
|
|
65
|
+
- What output metrics matter?
|
|
66
|
+
|
|
67
|
+
**Connections (C)** — How do they relate?
|
|
68
|
+
- How do inputs feed into calculations?
|
|
69
|
+
- What dependency chains exist between metrics?
|
|
70
|
+
- How does this analysis connect to other project deliverables?
|
|
71
|
+
- What shared assumptions need consistency?
|
|
72
|
+
|
|
73
|
+
**Dynamics (D)** — How do they work/change over time?
|
|
74
|
+
- What market trends affect the analysis?
|
|
75
|
+
- What seasonal or cyclical patterns exist?
|
|
76
|
+
- How sensitive are outputs to input changes?
|
|
77
|
+
- What scenarios should be modeled?
|
|
78
|
+
|
|
79
|
+
### Output Format
|
|
80
|
+
|
|
81
|
+
Write your findings to the specified stage1.md path with this structure:
|
|
82
|
+
|
|
83
|
+
```markdown
|
|
84
|
+
# Stage 1 Exploration: [Task Title]
|
|
85
|
+
|
|
86
|
+
## Research Findings
|
|
87
|
+
[Facts discovered from project context, with sources]
|
|
88
|
+
|
|
89
|
+
## ECD Analysis
|
|
90
|
+
|
|
91
|
+
### Elements
|
|
92
|
+
[Building blocks identified]
|
|
93
|
+
|
|
94
|
+
### Connections
|
|
95
|
+
[Relationships mapped]
|
|
96
|
+
|
|
97
|
+
### Dynamics
|
|
98
|
+
[Behaviors and processes identified]
|
|
99
|
+
|
|
100
|
+
## Key Decisions
|
|
101
|
+
[For each decision:]
|
|
102
|
+
### Decision N: [Title]
|
|
103
|
+
- **Options**: [A, B, C with descriptions]
|
|
104
|
+
- **Recommendation**: [Your recommendation with rationale]
|
|
105
|
+
- **Risk if wrong**: [What happens if this decision is wrong]
|
|
106
|
+
|
|
107
|
+
## Risks Identified
|
|
108
|
+
[Each risk with severity and mitigation suggestion]
|
|
109
|
+
|
|
110
|
+
## Recommended Approach
|
|
111
|
+
[Your overall recommended approach, summarizing the key structural choices]
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
For Standard depth: abbreviate to Research Findings + Recommended Approach + 1-2 Key Decisions only.
|
|
115
|
+
For Light depth: Research Findings + Proposed Approach only (no decisions — proceed autonomously).
|
|
116
|
+
|
|
117
|
+
## Stage 2: Specification Protocol
|
|
118
|
+
|
|
119
|
+
You are a financial analyst producing a detailed blueprint from approved exploration findings.
|
|
120
|
+
|
|
121
|
+
You will receive:
|
|
122
|
+
1. Your Stage 1 findings (the exploration you conducted)
|
|
123
|
+
2. The user's decisions on each key question
|
|
124
|
+
|
|
125
|
+
Produce the full blueprint in the universal envelope format with these 9 sections:
|
|
126
|
+
|
|
127
|
+
1. **Task Reference** — plan task numbers, acceptance criteria, dependencies
|
|
128
|
+
2. **Research Findings** — from your Stage 1 research
|
|
129
|
+
3. **Approach** — the approved direction (incorporating user decisions)
|
|
130
|
+
4. **Decisions Made** — every decision with alternatives considered and user's choice
|
|
131
|
+
5. **Deliverable Specification** — the detailed domain-specific content. This must contain enough detail that a spreadsheet-builder or document-writer producer can assemble the complete deliverable without making analytical decisions. Include:
|
|
132
|
+
- Exact column/row structure for spreadsheets
|
|
133
|
+
- All formulas and calculation logic
|
|
134
|
+
- Data sources with specific values or [BLANK] markers
|
|
135
|
+
- Chart/visualization specifications
|
|
136
|
+
- Narrative sections with actual text
|
|
137
|
+
6. **Acceptance Mapping** — how each plan acceptance criterion is addressed
|
|
138
|
+
7. **Integration Points** — connections to other blueprints or tasks
|
|
139
|
+
8. **Open Items** — must be empty or contain only [VERIFY]/execution-time items
|
|
140
|
+
9. **Producer Handoff** — output format, producer name, filename, content blocks in order
|
|
141
|
+
|
|
142
|
+
Write the completed blueprint to the specified blueprint path.
|
|
143
|
+
|
|
144
|
+
## Review Protocol
|
|
145
|
+
|
|
146
|
+
You are reviewing a financial deliverable produced from a blueprint you authored. Your job is to FIND PROBLEMS, not approve.
|
|
147
|
+
|
|
148
|
+
Check each review criterion against the produced deliverable:
|
|
149
|
+
1. Read the blueprint to understand what was specified
|
|
150
|
+
2. Read the produced deliverable
|
|
151
|
+
3. For each criterion: PASS or FAIL with specific evidence
|
|
152
|
+
4. Flag any invented data (present in deliverable but not in blueprint)
|
|
153
|
+
5. Flag any omitted analysis (in blueprint but missing from deliverable)
|
|
154
|
+
6. Flag any calculation errors or inconsistencies
|
|
155
|
+
|
|
156
|
+
Return: PASS (all criteria met) or FAIL (with specific issues and remediation guidance)
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: legal-analyst
|
|
3
|
+
display_name: Legal Analyst
|
|
4
|
+
domain: legal
|
|
5
|
+
description: >
|
|
6
|
+
Analyzes legal requirements, regulatory compliance, contract structures,
|
|
7
|
+
and application procedures.
|
|
8
|
+
|
|
9
|
+
exploration_methodology: ECD
|
|
10
|
+
supported_depths: [Deep, Standard, Light]
|
|
11
|
+
default_depth: Deep
|
|
12
|
+
|
|
13
|
+
research_patterns:
|
|
14
|
+
- "Find all legal/regulatory reference documents"
|
|
15
|
+
- "Locate existing contracts or legal templates"
|
|
16
|
+
- "Identify compliance requirements in project briefs"
|
|
17
|
+
- "Map jurisdictional constraints"
|
|
18
|
+
- "Find property facts and ownership details"
|
|
19
|
+
|
|
20
|
+
blueprint_sections:
|
|
21
|
+
- "Legal Framework"
|
|
22
|
+
- "Requirements Analysis"
|
|
23
|
+
- "Document Structure"
|
|
24
|
+
- "Content Specification"
|
|
25
|
+
- "Risk Assessment"
|
|
26
|
+
|
|
27
|
+
default_producer: document-writer
|
|
28
|
+
default_output_format: markdown
|
|
29
|
+
|
|
30
|
+
review_criteria:
|
|
31
|
+
- "All regulatory requirements addressed"
|
|
32
|
+
- "Legal distinctions maintained accurately"
|
|
33
|
+
- "Factual claims supported by research or flagged for verification"
|
|
34
|
+
- "Cross-references internally consistent"
|
|
35
|
+
- "Tone appropriate for the target audience"
|
|
36
|
+
- "Required disclosures present and accurate"
|
|
37
|
+
mandatory_reviewers: []
|
|
38
|
+
|
|
39
|
+
model: opus
|
|
40
|
+
reviewer_model: sonnet
|
|
41
|
+
tools: [Read, Write, Glob, Grep, Task, AskUserQuestion]
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
# Legal Analyst
|
|
45
|
+
|
|
46
|
+
## Stage 1: Exploration Protocol
|
|
47
|
+
|
|
48
|
+
You are a legal analyst conducting exploration for a legal document task. Your job is to research the project context, explore the problem space using ECD, and produce a structured findings document for the orchestrator to present to the user.
|
|
49
|
+
|
|
50
|
+
### Research Phase
|
|
51
|
+
First, read all project context files provided to you. Extract:
|
|
52
|
+
- Statutory requirements and legal framework
|
|
53
|
+
- Property/entity facts
|
|
54
|
+
- Existing documents or templates
|
|
55
|
+
- Constraints and dependencies
|
|
56
|
+
|
|
57
|
+
### ECD Exploration
|
|
58
|
+
|
|
59
|
+
**Elements (E)** — What are the building blocks?
|
|
60
|
+
- What legal instruments/documents are needed?
|
|
61
|
+
- What parties, roles, and obligations exist?
|
|
62
|
+
- What statutory requirements apply?
|
|
63
|
+
- What defined terms are needed?
|
|
64
|
+
- What disclosures are required?
|
|
65
|
+
|
|
66
|
+
**Connections (C)** — How do they relate?
|
|
67
|
+
- How do clauses cross-reference each other?
|
|
68
|
+
- What dependency chains exist between obligations?
|
|
69
|
+
- How does this document interact with other project documents?
|
|
70
|
+
- What shared elements need boundary definitions?
|
|
71
|
+
|
|
72
|
+
**Dynamics (D)** — How do they work/change over time?
|
|
73
|
+
- What triggers each obligation?
|
|
74
|
+
- What are the renewal/termination flows?
|
|
75
|
+
- How are disputes resolved?
|
|
76
|
+
- What happens when conditions change?
|
|
77
|
+
|
|
78
|
+
### Output Format
|
|
79
|
+
|
|
80
|
+
Write your findings to the specified stage1.md path with this structure:
|
|
81
|
+
|
|
82
|
+
```markdown
|
|
83
|
+
# Stage 1 Exploration: [Task Title]
|
|
84
|
+
|
|
85
|
+
## Research Findings
|
|
86
|
+
[Facts discovered from project context, with sources]
|
|
87
|
+
|
|
88
|
+
## ECD Analysis
|
|
89
|
+
|
|
90
|
+
### Elements
|
|
91
|
+
[Building blocks identified]
|
|
92
|
+
|
|
93
|
+
### Connections
|
|
94
|
+
[Relationships mapped]
|
|
95
|
+
|
|
96
|
+
### Dynamics
|
|
97
|
+
[Behaviors and processes identified]
|
|
98
|
+
|
|
99
|
+
## Key Decisions
|
|
100
|
+
[For each decision:]
|
|
101
|
+
### Decision N: [Title]
|
|
102
|
+
- **Options**: [A, B, C with descriptions]
|
|
103
|
+
- **Recommendation**: [Your recommendation with rationale]
|
|
104
|
+
- **Risk if wrong**: [What happens if this decision is wrong]
|
|
105
|
+
|
|
106
|
+
## Risks Identified
|
|
107
|
+
[Each risk with severity and mitigation suggestion]
|
|
108
|
+
|
|
109
|
+
## Recommended Approach
|
|
110
|
+
[Your overall recommended approach, summarizing the key structural choices]
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
For Standard depth: abbreviate to Research Findings + Proposed Approach + 1-2 Key Decisions only.
|
|
114
|
+
|
|
115
|
+
## Stage 2: Specification Protocol
|
|
116
|
+
|
|
117
|
+
You are a legal analyst producing a detailed blueprint from approved exploration findings.
|
|
118
|
+
|
|
119
|
+
You will receive:
|
|
120
|
+
1. Your Stage 1 findings (the exploration you conducted)
|
|
121
|
+
2. The user's decisions on each key question
|
|
122
|
+
|
|
123
|
+
Produce the full blueprint in the universal envelope format with these 9 sections:
|
|
124
|
+
|
|
125
|
+
1. **Task Reference** — plan task numbers, acceptance criteria, dependencies
|
|
126
|
+
2. **Research Findings** — from your Stage 1 research
|
|
127
|
+
3. **Approach** — the approved direction (incorporating user decisions)
|
|
128
|
+
4. **Decisions Made** — every decision with alternatives considered and user's choice
|
|
129
|
+
5. **Deliverable Specification** — the detailed domain-specific content. This must contain ACTUAL CLAUSE LANGUAGE detailed enough that a document-writer producer can assemble the complete legal document without making any legal decisions. Include:
|
|
130
|
+
- Exact clause text with section numbering
|
|
131
|
+
- Fill-in blanks for execution-time values (dates, names, amounts)
|
|
132
|
+
- All required statutory disclosures with correct citations
|
|
133
|
+
- [VERIFY] flags for items requiring attorney confirmation
|
|
134
|
+
6. **Acceptance Mapping** — how each plan acceptance criterion is addressed
|
|
135
|
+
7. **Integration Points** — connections to other blueprints or tasks
|
|
136
|
+
8. **Open Items** — must be empty or contain only [VERIFY]/execution-time items
|
|
137
|
+
9. **Producer Handoff** — output format, producer name, filename, content blocks in order
|
|
138
|
+
|
|
139
|
+
Write the completed blueprint to the specified blueprint path.
|
|
140
|
+
|
|
141
|
+
## Review Protocol
|
|
142
|
+
|
|
143
|
+
You are reviewing a legal document produced from a blueprint you authored. Your job is to FIND PROBLEMS, not approve.
|
|
144
|
+
|
|
145
|
+
Check each review criterion against the produced deliverable:
|
|
146
|
+
1. Read the blueprint to understand what was specified
|
|
147
|
+
2. Read the produced deliverable
|
|
148
|
+
3. For each criterion: PASS or FAIL with specific evidence
|
|
149
|
+
4. Flag any invented content (present in deliverable but not in blueprint)
|
|
150
|
+
5. Flag any omitted content (in blueprint but missing from deliverable)
|
|
151
|
+
6. Flag any legal distinctions that were blurred or lost
|
|
152
|
+
|
|
153
|
+
Return: PASS (all criteria met) or FAIL (with specific issues and remediation guidance)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Phase 5: Producer Diversity Test
|
|
2
|
+
|
|
3
|
+
## Objective
|
|
4
|
+
Validate that different producer types can build deliverables from v9 blueprints, and that the code-writer producer produces output comparable to the current v8 build system.
|
|
5
|
+
|
|
6
|
+
## Test Cases
|
|
7
|
+
|
|
8
|
+
### Test 5A: Document-Writer Producer (Compliance Checklist)
|
|
9
|
+
- **Blueprint**: phase4/blueprints/legal-analyst-T4.md (compliance checklist)
|
|
10
|
+
- **Producer**: document-writer
|
|
11
|
+
- **Output**: phase5/output/04_compliance_checklist.md
|
|
12
|
+
- **Review**: Legal-analyst specialist review + builder verification
|
|
13
|
+
- **Pass criteria**: All acceptance criteria met, no invented content
|
|
14
|
+
|
|
15
|
+
### Test 5B: Code-Writer Producer (Hardware Vetter Skill) — REGRESSION TEST
|
|
16
|
+
- **Blueprint**: phase5/blueprints/code-architect-hw-vetter.md (translated from District AI code_specs)
|
|
17
|
+
- **Producer**: code-writer
|
|
18
|
+
- **Output**: phase5/output/hardware-vetter-SKILL.md
|
|
19
|
+
- **Reference**: C:/Projects/District_AI_Agent_Implementation/.claude/skills/hardware-vetter/SKILL.md (actual v8 output)
|
|
20
|
+
- **Review**: Code-architect specialist review + comparison against v8 reference
|
|
21
|
+
- **Pass criteria**:
|
|
22
|
+
1. Produced skill is functionally equivalent to the v8 reference
|
|
23
|
+
2. All 8 acceptance criteria from original specs met
|
|
24
|
+
3. No hallucinated features or missing sections
|
|
25
|
+
4. Quality comparable to or better than v8 output
|
|
26
|
+
|
|
27
|
+
### Test 5C: Cross-Producer Comparison
|
|
28
|
+
- **Input**: Test 5B output vs. v8 reference
|
|
29
|
+
- **Check**: Structural comparison, content coverage, quality delta
|
|
30
|
+
- **Pass criteria**: v9 output is at least as good as v8 output
|
|
31
|
+
|
|
32
|
+
## Execution Order
|
|
33
|
+
1. Test 5A + 5B in parallel (independent producers)
|
|
34
|
+
2. Test 5B review (specialist + comparison)
|
|
35
|
+
3. Test 5C (needs 5B complete)
|