@compilr-dev/sdk 0.7.7 → 0.7.9

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.
@@ -0,0 +1,164 @@
1
+ /**
2
+ * Course / Training Skills
3
+ *
4
+ * curriculum-design, lesson-plan, assessment-design, course-review
5
+ */
6
+ import { defineSkill } from '@compilr-dev/agents';
7
+ export const curriculumDesignSkill = defineSkill({
8
+ name: 'curriculum-design',
9
+ description: 'Define course structure — modules, learning objectives, progression',
10
+ prompt: `You are in CURRICULUM DESIGN MODE. Help the user structure their course.
11
+
12
+ ## Step 1: Course Overview
13
+ 1. Use \`curriculum_model_get\` scope: "overview" to check existing state
14
+ 2. Ask for: course title, description, target audience, prerequisites, difficulty level
15
+ 3. Save: \`curriculum_model_update\` op: "set_course_info"
16
+
17
+ ## Step 2: Module Breakdown
18
+ Ask: "What are the main topics/sections of your course?"
19
+ Help organize into 3-8 modules with logical progression.
20
+ For each module: \`curriculum_model_update\` op: "module_add"
21
+
22
+ ## Step 3: Learning Objectives
23
+ For each module, ask: "After this module, what should the student be able to DO?"
24
+ Use Bloom's taxonomy levels:
25
+ - Remember (define, list, recall)
26
+ - Understand (explain, describe, summarize)
27
+ - Apply (use, implement, solve)
28
+ - Analyze (compare, differentiate, examine)
29
+ - Evaluate (assess, critique, judge)
30
+ - Create (design, build, compose)
31
+
32
+ Save: \`curriculum_model_update\` op: "module_update" with learningObjectives
33
+
34
+ ## Step 4: Time Estimates
35
+ Ask about total course length, then distribute across modules.
36
+ Save: \`curriculum_model_update\` op: "module_update" with estimatedMinutes
37
+
38
+ ## Step 5: Generate Work Items
39
+ Create one "Lesson" work item per module: "Develop: [module title]"
40
+
41
+ ## Step 6: Validation
42
+ Run \`curriculum_model_validate\` to check completeness.
43
+
44
+ ## Rules
45
+ - Interactive — one section at a time
46
+ - The user is the subject expert, you are the curriculum designer
47
+ - Push for specific, measurable objectives (not "understand Python" but "write a function that takes arguments and returns a value")
48
+ - Suggest KB uploads for existing materials`,
49
+ tags: ['education', 'planning', 'curriculum'],
50
+ });
51
+ export const lessonPlanSkill = defineSkill({
52
+ name: 'lesson-plan',
53
+ description: 'Break a module into detailed lessons with types and time estimates',
54
+ prompt: `You are in LESSON PLAN MODE. Break a module into detailed lessons.
55
+
56
+ ## Step 1: Read Context
57
+ 1. \`curriculum_model_get\` scope: "modules" for overview
58
+ 2. Ask which module to plan (or plan all)
59
+ 3. Read the module's learning objectives
60
+
61
+ ## Step 2: Propose Lessons
62
+ For each learning objective, propose lessons:
63
+ - **theory** — explain concepts, principles, background
64
+ - **demo** — show how it works (live coding, walkthrough)
65
+ - **hands-on** — student does it themselves
66
+ - **discussion** — reflect, discuss implications, share experiences
67
+ - **reading** — reference material, further study
68
+
69
+ Balance: aim for at least 40% hands-on/demo.
70
+
71
+ ## Step 3: Sequence and Time
72
+ - Order lessons logically (concept before practice)
73
+ - Estimate minutes per lesson
74
+ - Total should roughly match the module's estimated time
75
+
76
+ Save each: \`curriculum_model_update\` op: "lesson_add"
77
+
78
+ ## Step 4: Suggest Assessments
79
+ After lessons, suggest an assessment for the module.
80
+ Save: \`curriculum_model_update\` op: "assessment_add"
81
+
82
+ ## Rules
83
+ - Every learning objective should be addressed by at least one lesson
84
+ - Don't create theory-only modules — students need practice
85
+ - Keep individual lessons under 45 minutes
86
+ - Suggest where KB materials could be used`,
87
+ tags: ['education', 'planning', 'lessons'],
88
+ });
89
+ export const assessmentDesignSkill = defineSkill({
90
+ name: 'assessment-design',
91
+ description: 'Create quizzes, exercises, and projects for a module',
92
+ prompt: `You are in ASSESSMENT DESIGN MODE. Create assessments linked to learning objectives.
93
+
94
+ ## Step 1: Read Context
95
+ 1. \`curriculum_model_get\` scope: "module" with the target module
96
+ 2. Review learning objectives and existing lessons
97
+
98
+ ## Step 2: Choose Assessment Types
99
+ Match assessment to objective level:
100
+ - **quiz** — for Remember/Understand (multiple choice, true/false, short answer)
101
+ - **exercise** — for Apply/Analyze (hands-on practice, problem solving)
102
+ - **project** — for Evaluate/Create (open-ended, multi-step)
103
+ - **peer-review** — students review each other's work
104
+ - **reflection** — self-assessment, learning journal
105
+
106
+ ## Step 3: Design Each Assessment
107
+ For each: title, type, description, which objectives it tests.
108
+ Save: \`curriculum_model_update\` op: "assessment_add"
109
+
110
+ ## Step 4: Coverage Check
111
+ Verify every learning objective has at least one assessment.
112
+ Flag untested objectives.
113
+
114
+ ## Rules
115
+ - Every objective should be assessed
116
+ - Mix assessment types for variety
117
+ - Exercises should be doable within the lesson timeframe
118
+ - Projects can span multiple objectives`,
119
+ tags: ['education', 'assessment'],
120
+ });
121
+ export const courseReviewSkill = defineSkill({
122
+ name: 'course-review',
123
+ description: 'Review course for pedagogical quality — balance, coverage, progression',
124
+ prompt: `You are in COURSE REVIEW MODE. Evaluate the curriculum as a pedagogical expert.
125
+
126
+ ## Step 1: Load
127
+ 1. \`curriculum_model_get\` scope: "full"
128
+ 2. Run \`curriculum_model_validate\` for structural issues
129
+
130
+ ## Step 2: Completeness
131
+ Check each module has:
132
+ - Learning objectives (specific, measurable)
133
+ - Lessons (at least 2)
134
+ - At least one assessment
135
+ Score: Complete / Partial / Missing
136
+
137
+ ## Step 3: Balance Analysis
138
+ - Theory vs practice ratio per module (flag if >70% theory)
139
+ - Time distribution across modules (flag if one is >2x the average)
140
+ - Lesson type variety (flag modules with only one type)
141
+
142
+ ## Step 4: Progression
143
+ - Are prerequisites respected? (easier modules before harder ones)
144
+ - Does difficulty increase progressively?
145
+ - Are foundational concepts taught before they're needed?
146
+
147
+ ## Step 5: Assessment Coverage
148
+ - Map objectives to assessments
149
+ - Flag objectives with no assessment
150
+ - Flag assessments testing nothing specific
151
+
152
+ ## Step 6: Report
153
+ Generate a structured review:
154
+ - Scorecard (modules: complete/partial/missing)
155
+ - Strengths
156
+ - Issues (critical + recommendations)
157
+ - Create work items for issues found
158
+
159
+ ## Rules
160
+ - Be constructive — suggest fixes, don't just flag problems
161
+ - Focus on pedagogy, not domain accuracy (user is the expert)
162
+ - 3-5 most impactful recommendations, not a list of 20 nitpicks`,
163
+ tags: ['education', 'review', 'quality'],
164
+ });
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Platform Skills — barrel export
3
3
  */
4
- export { platformSkills, designSkill, sketchSkill, prdSkill, refineSkill, refineItemSkill, architectureSkill, sessionNotesSkill, buildSkill, scaffoldSkill, outlineSkill, literatureReviewSkill, draftSectionSkill, peerReviewSkill, researchScaffoldSkill, businessVisionSkill, marketAnalysisSkill, competitorAnalysisSkill, financialModelSkill, pitchOutlineSkill, businessReviewSkill, brandSetupSkill, contentStrategySkill, contentCalendarSkill, createContentSkill, contentReviewSkill, } from './platform-skills.js';
4
+ export { platformSkills, designSkill, sketchSkill, prdSkill, refineSkill, refineItemSkill, architectureSkill, sessionNotesSkill, buildSkill, scaffoldSkill, outlineSkill, literatureReviewSkill, draftSectionSkill, peerReviewSkill, researchScaffoldSkill, businessVisionSkill, marketAnalysisSkill, competitorAnalysisSkill, financialModelSkill, pitchOutlineSkill, businessReviewSkill, brandSetupSkill, contentStrategySkill, contentCalendarSkill, createContentSkill, contentReviewSkill, curriculumDesignSkill, lessonPlanSkill, assessmentDesignSkill, courseReviewSkill, bookOutlineSkill, characterDesignSkill, plotThreadsSkill, sceneBreakdownSkill, bookReviewSkill, } from './platform-skills.js';
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Platform Skills — barrel export
3
3
  */
4
- export { platformSkills, designSkill, sketchSkill, prdSkill, refineSkill, refineItemSkill, architectureSkill, sessionNotesSkill, buildSkill, scaffoldSkill, outlineSkill, literatureReviewSkill, draftSectionSkill, peerReviewSkill, researchScaffoldSkill, businessVisionSkill, marketAnalysisSkill, competitorAnalysisSkill, financialModelSkill, pitchOutlineSkill, businessReviewSkill, brandSetupSkill, contentStrategySkill, contentCalendarSkill, createContentSkill, contentReviewSkill, } from './platform-skills.js';
4
+ export { platformSkills, designSkill, sketchSkill, prdSkill, refineSkill, refineItemSkill, architectureSkill, sessionNotesSkill, buildSkill, scaffoldSkill, outlineSkill, literatureReviewSkill, draftSectionSkill, peerReviewSkill, researchScaffoldSkill, businessVisionSkill, marketAnalysisSkill, competitorAnalysisSkill, financialModelSkill, pitchOutlineSkill, businessReviewSkill, brandSetupSkill, contentStrategySkill, contentCalendarSkill, createContentSkill, contentReviewSkill, curriculumDesignSkill, lessonPlanSkill, assessmentDesignSkill, courseReviewSkill, bookOutlineSkill, characterDesignSkill, plotThreadsSkill, sceneBreakdownSkill, bookReviewSkill, } from './platform-skills.js';
@@ -1,41 +1,17 @@
1
1
  /**
2
- * Platform Skills
2
+ * Platform Skills — Aggregate
3
3
  *
4
- * Skills that depend on platform-specific tools (backlog, workitems, documents, projects).
5
- * These were originally in @compilr-dev/agents and @compilr-dev/agents-coding-core
6
- * but belong in the SDK since they reference platform tools.
7
- *
8
- * Skills: design, sketch, prd, refine, refine-item, architecture, session-notes, build, scaffold
4
+ * Re-exports all domain-specific skills and provides the combined platformSkills array.
5
+ * Individual skill files: software-skills.ts, research-skills.ts, business-skills.ts, content-skills.ts
9
6
  */
10
- import { type Skill } from '@compilr-dev/agents';
11
- export declare const designSkill: Skill;
12
- export declare const refineSkill: Skill;
13
- export declare const sketchSkill: Skill;
14
- export declare const refineItemSkill: Skill;
15
- export declare const architectureSkill: Skill;
16
- export declare const prdSkill: Skill;
17
- export declare const sessionNotesSkill: Skill;
18
- export declare const buildSkill: Skill;
19
- export declare const scaffoldSkill: Skill;
20
- export declare const outlineSkill: Skill;
21
- export declare const literatureReviewSkill: Skill;
22
- export declare const draftSectionSkill: Skill;
23
- export declare const peerReviewSkill: Skill;
24
- export declare const researchScaffoldSkill: Skill;
25
- export declare const businessVisionSkill: Skill;
26
- export declare const marketAnalysisSkill: Skill;
27
- export declare const competitorAnalysisSkill: Skill;
28
- export declare const financialModelSkill: Skill;
29
- export declare const pitchOutlineSkill: Skill;
30
- export declare const businessReviewSkill: Skill;
31
- export declare const brandSetupSkill: Skill;
32
- export declare const contentStrategySkill: Skill;
33
- export declare const contentCalendarSkill: Skill;
34
- export declare const createContentSkill: Skill;
35
- export declare const contentReviewSkill: Skill;
7
+ import type { Skill } from '@compilr-dev/agents';
8
+ export { designSkill, sketchSkill, prdSkill, refineSkill, refineItemSkill, architectureSkill, sessionNotesSkill, buildSkill, scaffoldSkill, } from './software-skills.js';
9
+ export { outlineSkill, literatureReviewSkill, draftSectionSkill, peerReviewSkill, researchScaffoldSkill, } from './research-skills.js';
10
+ export { businessVisionSkill, marketAnalysisSkill, competitorAnalysisSkill, financialModelSkill, pitchOutlineSkill, businessReviewSkill, } from './business-skills.js';
11
+ export { brandSetupSkill, contentStrategySkill, contentCalendarSkill, createContentSkill, contentReviewSkill, } from './content-skills.js';
12
+ export { curriculumDesignSkill, lessonPlanSkill, assessmentDesignSkill, courseReviewSkill, } from './course-skills.js';
13
+ export { bookOutlineSkill, characterDesignSkill, plotThreadsSkill, sceneBreakdownSkill, bookReviewSkill, } from './book-skills.js';
36
14
  /**
37
- * All platform-specific skills (25 total).
38
- * These skills reference platform tools (backlog, workitems, documents, projects)
39
- * and belong in the SDK rather than in generic agent/coding libraries.
15
+ * All platform-specific skills (34 total).
40
16
  */
41
17
  export declare const platformSkills: Skill[];