Skip to content

Commit 433ceb1

Browse files
committed
fix: improve init for plugins
1 parent caaa725 commit 433ceb1

5 files changed

Lines changed: 14 additions & 3 deletions

File tree

.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "archcore",
33
"description": "Make your AI agent code with your project's architecture, rules, and decisions.",
4-
"version": "0.3.11",
4+
"version": "0.3.12",
55
"author": {
66
"name": "Archcore"
77
},

.codex-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "archcore",
33
"description": "Make your AI agent code with your project's architecture, rules, and decisions.",
4-
"version": "0.3.11",
4+
"version": "0.3.12",
55
"author": {
66
"name": "Archcore"
77
},

.cursor-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "archcore",
33
"displayName": "Archcore",
44
"description": "Make your AI agent code with your project's architecture, rules, and decisions.",
5-
"version": "0.3.11",
5+
"version": "0.3.12",
66
"author": {
77
"name": "Archcore"
88
},

skills/bootstrap/SKILL.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ Each mode additionally runs hotspot capture-candidate proposal (Step 6) and opti
5454

5555
## Execution
5656

57+
### Step -1: Ensure initialization
58+
59+
Call `mcp__archcore__init_project()` before any other MCP operation. It is idempotent — safe on an already-initialized project (returns existing settings). It creates `.archcore/` and the settings file if they do not exist.
60+
61+
Do NOT ask the user to run `archcore init` in the terminal — `mcp__archcore__init_project` is the correct path in a plugin session.
62+
5763
### Step 0: Check state
5864

5965
Call `mcp__archcore__list_documents()`. Derive:

test/structure/skills.bats

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,8 @@ setup() {
5353
done | sort | uniq -d)
5454
[ -z "$dupes" ] || fail "Duplicate skill names: $dupes"
5555
}
56+
57+
@test "bootstrap skill calls init_project before operating on uninitialized projects" {
58+
grep -q "mcp__archcore__init_project" "$PLUGIN_ROOT/skills/bootstrap/SKILL.md" \
59+
|| fail "bootstrap/SKILL.md must instruct the agent to call mcp__archcore__init_project for uninitialized projects"
60+
}

0 commit comments

Comments
 (0)