clearctx 3.0.0 → 3.1.0

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 CHANGED
@@ -1004,3 +1004,4 @@ clearctx team-replay pre-work --overrides overrides.json
1004
1004
  ## License
1005
1005
 
1006
1006
  MIT
1007
+
package/bin/setup.js CHANGED
@@ -178,6 +178,33 @@ This shows which workers actually read the conventions. If a worker is missing,
178
178
 
179
179
  NEVER trust a worker's self-reported completion — verify the artifact exists yourself.
180
180
 
181
+ ### Rule 8: Use expertise skills for domain work
182
+
183
+ When spawning workers, assign relevant expertise skills to improve output quality:
184
+
185
+ 1. Call \`skill_detect\` with the task description to auto-match skills
186
+ 2. Pass matched skills to \`team_spawn\` via the \`skills\` parameter:
187
+ \`\`\`
188
+ team_spawn({
189
+ name: "db-dev",
190
+ role: "database",
191
+ skills: ["postgresql"],
192
+ prompt: "Create the database schema..."
193
+ })
194
+ \`\`\`
195
+ 3. Override auto-detection with explicit skills when you know better
196
+ 4. Workers with skills produce higher-quality, convention-compliant output
197
+ 5. Available skills: postgresql, nodejs-backend, react-frontend, testing-qa, api-design, devops, security, typescript
198
+
199
+ **Role-based fallback:** If you don't specify skills but provide a role, the system auto-detects relevant skills:
200
+ - database → postgresql
201
+ - backend → nodejs-backend, api-design
202
+ - frontend → react-frontend
203
+ - QA/testing → testing-qa
204
+ - devops → devops
205
+ - security → security
206
+ - fullstack → nodejs-backend, react-frontend, typescript
207
+
181
208
  ## Auto-Behaviors (v2.7.0)
182
209
 
183
210
  These happen automatically — no action needed from you or the workers:
@@ -186,8 +213,9 @@ These happen automatically — no action needed from you or the workers:
186
213
  - **Inbox enforcement**: Workers are blocked from using artifact/contract tools until they call \`team_check_inbox\`
187
214
  - **File ownership tracking**: \`artifact_publish\` auto-registers file ownership from \`files\`/\`filesCreated\`/\`filesModified\` arrays in artifact data
188
215
  - **Convention completeness check**: \`phase_gate\` warns if \`shared-conventions\` artifact is missing or has incomplete fields
216
+ - **Skills System**: When you provide a \`role\` to \`team_spawn\` without explicit \`skills\`, the system auto-detects relevant expertise skills based on the role (e.g., "database" → postgresql, "backend" → nodejs-backend + api-design). You can override this by passing explicit \`skills\` array.
189
217
 
190
- ## Quick Reference (68 tools)
218
+ ## Quick Reference (71 tools)
191
219
 
192
220
  | You want to... | Use this tool |
193
221
  |----------------|---------------|
@@ -202,6 +230,10 @@ These happen automatically — no action needed from you or the workers:
202
230
  | Check who read an artifact | \`artifact_readers\` |
203
231
  | Check file ownership (Rule 6) | \`check_file_owner\` |
204
232
  | Register file ownership | \`register_files\` |
233
+ | Auto-detect skills for a task | \`skill_detect\` |
234
+ | List available skills | \`skill_list\` |
235
+ | Read a skill's content | \`skill_get\` |
236
+ | Spawn worker with skills | \`team_spawn\` with \`skills\` parameter |
205
237
  | Clean up between runs | \`team_reset\` |
206
238
 
207
239
  ### When NOT to Delegate
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clearctx",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "Multi-session orchestrator for Claude Code CLI — spawn, control, pause, resume, and send multiple inputs to Claude Code sessions programmatically",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -31,7 +31,7 @@
31
31
  "parallel-tasks",
32
32
  "workflow-automation"
33
33
  ],
34
- "author": "",
34
+ "author": "RevanthThota55 <revanththota55@gmail.com>",
35
35
  "license": "MIT",
36
36
  "engines": {
37
37
  "node": ">=18.0.0"
@@ -39,6 +39,7 @@
39
39
  "files": [
40
40
  "src/",
41
41
  "bin/",
42
+ "skills/",
42
43
  "README.md",
43
44
  "CHANGELOG.md",
44
45
  "STRATEGY.md",