Skip to content

Commit 0722442

Browse files
committed
feat: Change default scope for skill and subagent creation to 'project' and update parameter descriptions.
1 parent 66ff280 commit 0722442

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

bin/mcp-server.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,11 @@ server.registerTool(
235235
name: z.string().describe("Skill name (e.g., code-reviewer, commit-messages)"),
236236
description: z.string().describe("Short description of what the skill does"),
237237
instructions: z.string().describe("Markdown instructions for Claude to follow"),
238-
scope: z.enum(["user", "project"]).optional().describe('"user" (~/.claude/skills) or "project" (.claude/skills)'),
238+
scope: z.enum(["user", "project"]).optional().describe('"project" (.claude/skills) or "user" (~/.claude/skills). Default: project'),
239239
allowed_tools: z.array(z.string()).optional().describe("Optional list of allowed tools (e.g., Bash, Read, Write)"),
240240
},
241241
},
242-
async ({ name, description, instructions, scope = "user", allowed_tools }) => {
242+
async ({ name, description, instructions, scope = "project", allowed_tools }) => {
243243
// Validate required parameters
244244
if (!name) {
245245
return {
@@ -383,12 +383,12 @@ server.registerTool(
383383
name: z.string().describe("Subagent name (e.g., test-runner, security-reviewer)"),
384384
description: z.string().describe("What this subagent specializes in"),
385385
instructions: z.string().describe("System prompt / instructions for the subagent"),
386-
scope: z.enum(["user", "project"]).optional().describe('"user" (~/.claude/agents) or "project" (.claude/agents)'),
386+
scope: z.enum(["user", "project"]).optional().describe('"project" (.claude/agents) or "user" (~/.claude/agents). Default: project'),
387387
skills: z.array(z.string()).optional().describe("Optional list of skills this subagent can use"),
388388
allowed_tools: z.array(z.string()).optional().describe("Optional list of allowed tools"),
389389
},
390390
},
391-
async ({ name, description, instructions, scope = "user", skills, allowed_tools }) => {
391+
async ({ name, description, instructions, scope = "project", skills, allowed_tools }) => {
392392
const agentsDir = getAgentsDir(scope);
393393
const agentFile = join(agentsDir, `${name}.md`);
394394

0 commit comments

Comments
 (0)