Skip to content

Commit b19a644

Browse files
authored
Merge pull request #170 from onlycastle/refactor/plugin-skill-dirs-20260319
refactor(plugin): restructure skills into directory-based layout
2 parents 60d7fbb + fde7c49 commit b19a644

14 files changed

Lines changed: 18 additions & 18 deletions

File tree

docs/human/LLM_FLOW.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,7 +1321,7 @@ Expert knowledge structure injected into Phase 2 workers via prompts:
13211321
13221322
| Component | File | Description |
13231323
|-----------|------|-------------|
1324-
| Plugin Skills | `packages/plugin/skills/*.md` | Analysis pipeline steps (analyze, classify, translate, etc.) |
1324+
| Plugin Skills | `packages/plugin/skills/*/SKILL.md` | Analysis pipeline steps (analyze, classify, translate, etc.) |
13251325
| Core Types | `packages/plugin/lib/core/types.ts` | Pipeline types and interfaces |
13261326
| Background Analyzer | `packages/plugin/lib/background-analyzer.ts` | Pipeline coordination and execution |
13271327

@@ -1336,11 +1336,11 @@ Expert knowledge structure injected into Phase 2 workers via prompts:
13361336

13371337
| Component | File | Description |
13381338
|-----------|------|-------------|
1339-
| Thinking Quality Skill | `packages/plugin/skills/analyze-thinking-quality.md` | Planning, critical thinking |
1340-
| Communication Patterns Skill | `packages/plugin/skills/analyze-communication.md` | Communication patterns, signature quotes |
1341-
| Learning Behavior Skill | `packages/plugin/skills/analyze-learning.md` | Knowledge gaps & repeated mistakes |
1342-
| Context Efficiency Skill | `packages/plugin/skills/analyze-efficiency.md` | Token inefficiency |
1343-
| Session Outcome Skill | `packages/plugin/skills/analyze-sessions.md` | Goals, friction, success rates |
1339+
| Thinking Quality Skill | `packages/plugin/skills/analyze-thinking-quality/SKILL.md` | Planning, critical thinking |
1340+
| Communication Patterns Skill | `packages/plugin/skills/analyze-communication/SKILL.md` | Communication patterns, signature quotes |
1341+
| Learning Behavior Skill | `packages/plugin/skills/analyze-learning/SKILL.md` | Knowledge gaps & repeated mistakes |
1342+
| Context Efficiency Skill | `packages/plugin/skills/analyze-efficiency/SKILL.md` | Token inefficiency |
1343+
| Session Outcome Skill | `packages/plugin/skills/analyze-sessions/SKILL.md` | Goals, friction, success rates |
13441344
| Agent Outputs Schema | `src/lib/models/agent-outputs.ts` | AgentOutputs Zod schemas |
13451345
| Thinking Quality Schema | `src/lib/models/thinking-quality-data.ts` | ThinkingQualityOutput |
13461346
| Communication Patterns Schema | `src/lib/models/communication-patterns-data.ts` | CommunicationPatternsOutput |
@@ -1352,7 +1352,7 @@ Expert knowledge structure injected into Phase 2 workers via prompts:
13521352

13531353
| Component | File | Description |
13541354
|-----------|------|-------------|
1355-
| Classify Type Skill | `packages/plugin/skills/classify-type.md` | Type classification |
1355+
| Classify Type Skill | `packages/plugin/skills/classify-type/SKILL.md` | Type classification |
13561356
| Deterministic Type Mapper | `packages/plugin/lib/core/deterministic-type-mapper.ts` | Maps scores to primaryType/controlLevel/distribution |
13571357
| Coding Style Types | `src/lib/models/coding-style.ts` | 5x3 matrix types (15 combinations) |
13581358

@@ -1366,22 +1366,22 @@ Expert knowledge structure injected into Phase 2 workers via prompts:
13661366

13671367
| Component | File | Description |
13681368
|-----------|------|-------------|
1369-
| Write Content Skill | `packages/plugin/skills/write-content.md` | Narrative generation (personalitySummary, promptPatterns, topFocusAreas) |
1369+
| Write Content Skill | `packages/plugin/skills/write-content/SKILL.md` | Narrative generation (personalitySummary, promptPatterns, topFocusAreas) |
13701370
| Narrative Schema | `src/lib/models/verbose-evaluation.ts` | `NarrativeLLMResponseSchema` (personalitySummary, promptPatterns, topFocusAreas) |
13711371

13721372
### Phase 4: Translator — Conditional Translation (0-1 LLM call via plugin skill)
13731373

13741374
| Component | File | Description |
13751375
|-----------|------|-------------|
1376-
| Translate Report Skill | `packages/plugin/skills/translate-report.md` | Conditional translation for non-English users (ko, ja, zh) |
1376+
| Translate Report Skill | `packages/plugin/skills/translate-report/SKILL.md` | Conditional translation for non-English users (ko, ja, zh) |
13771377
| Translator Schema | `src/lib/models/translator-output.ts` | `TranslatorOutput` Zod schema (translated text fields + translatedAgentInsights) |
13781378

13791379
### Evaluation Assembly + Translation Overlay (deterministic, no LLM)
13801380

13811381
| Component | File | Description |
13821382
|-----------|------|-------------|
13831383
| Evaluation Assembler | `packages/plugin/lib/evaluation-assembler.ts` | `assembleEvaluation()` — merges Phase 2 structural data + Phase 3 narrative into VerboseEvaluation fields (English defaults) |
1384-
| Verify Evidence Skill | `packages/plugin/skills/verify-evidence.md` | Validates utteranceId references |
1384+
| Verify Evidence Skill | `packages/plugin/skills/verify-evidence/SKILL.md` | Validates utteranceId references |
13851385
| Translator Output Schema | `src/lib/models/translator-output.ts` | `TranslatorOutput` schema (translated text fields + translatedAgentInsights) |
13861386
| Output Schema | `src/lib/models/verbose-evaluation.ts` | `VerboseEvaluation` schema (full evaluation including assembled fields + metadata + translatedAgentInsights) |
13871387

@@ -1442,20 +1442,20 @@ Plugin Skills (packages/plugin/skills/):
14421442
│ └── Data extraction (packages/plugin/lib/core/data-extractor.ts)
14431443
14441444
├── Phase 2 (5 LLM calls, parallel):
1445-
│ ├── analyze-thinking-quality.md (planning, critical thinking)
1446-
│ ├── analyze-communication.md (communication patterns, signature quotes)
1447-
│ ├── analyze-learning.md (knowledge gaps, repeated mistakes)
1448-
│ ├── analyze-efficiency.md (token inefficiency)
1449-
│ └── analyze-sessions.md (goals, friction, success rates)
1445+
│ ├── analyze-thinking-quality/SKILL.md (planning, critical thinking)
1446+
│ ├── analyze-communication/SKILL.md (communication patterns, signature quotes)
1447+
│ ├── analyze-learning/SKILL.md (knowledge gaps, repeated mistakes)
1448+
│ ├── analyze-efficiency/SKILL.md (token inefficiency)
1449+
│ └── analyze-sessions/SKILL.md (goals, friction, success rates)
14501450
14511451
├── Phase 2.5 (1 LLM call):
1452-
│ └── classify-type.md (type classification)
1452+
│ └── classify-type/SKILL.md (type classification)
14531453
14541454
├── Phase 3 (1 LLM call):
1455-
│ └── write-content.md (narrative generation)
1455+
│ └── write-content/SKILL.md (narrative generation)
14561456
14571457
└── Phase 4 (0-1 LLM call):
1458-
└── translate-report.md (conditional translation)
1458+
└── translate-report/SKILL.md (conditional translation)
14591459
14601460
Environment Variables:
14611461
└── GOOGLE_GEMINI_API_KEY ← Required for orchestrator pipeline
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)