Skip to content

Commit 7d3cd8c

Browse files
committed
refactor: new skill setup for plugin
1 parent 512b18d commit 7d3cd8c

59 files changed

Lines changed: 591 additions & 946 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/skills/verify-plugin-integrity/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ If a local spec conflicts with an external official doc, the external doc is gro
5656
- Before opening a PR that touches plugin structure
5757
- When cross-host (Claude + Cursor + Codex) manifest consistency is in doubt
5858
- **Not** for test runs — use `/archcore:verify`
59-
- **Not** for Archcore document freshness vs code — use `/archcore:actualize`
59+
- **Not** for Archcore document freshness vs code — use `/archcore:audit --drift`
6060

6161
---
6262

@@ -316,7 +316,7 @@ Light staleness check against `.archcore/plugin/component-registry.doc.md`:
316316
- Hook scripts in `bin/` match the registry's Hook Scripts table
317317
- Per-host config table (`.claude-plugin/plugin.json`, `.cursor-plugin/plugin.json`, `.codex-plugin/plugin.json`, `.mcp.json`, `.codex.mcp.json`, `hooks/hooks.json`, `hooks/cursor.hooks.json`, `hooks/codex.hooks.json`, `.agents/plugins/marketplace.json`) all exist
318318

319-
This is a spot-check, not a full audit — for full staleness detection use `/archcore:actualize`.
319+
This is a spot-check, not a full audit — for full staleness detection use `/archcore:audit --drift`.
320320

321321
---
322322

README.md

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Both manifests (`.claude-plugin/plugin.json` and `.cursor-plugin/plugin.json`) l
8686

8787
Install, open your project, and try these three prompts. Each shows a different side of what your agent can now do.
8888

89-
_Empty repo? Run `/archcore:bootstrap` first to seed a stack rule, a run-the-app guide, and (optionally) imports from your existing CLAUDE.md / AGENTS.md / .cursorrules._
89+
_Empty repo? Run `/archcore:init` first to seed a stack rule, a run-the-app guide, and (optionally) imports from your existing CLAUDE.md / AGENTS.md / .cursorrules._
9090

9191
**1. "Before I change anything in `src/auth/`, what rules and prior decisions apply here?"**
9292
Archcore loads the rules, ADRs, specs, and patterns tied to that path — grouped by type, ranked by specificity — before the agent edits code. Works the same way for a file, a directory, or a topic.
@@ -154,8 +154,8 @@ Two pieces work together:
154154

155155
## What ships in the box
156156

157-
- **16 Skills**9 intent workflows, 6 multi-step tracks, 1 utility
158-
- **16 Codex slash commands** — thin command wrappers over the same skill workflows
157+
- **7 Skills**6 intent workflows (init, context, capture, decide, plan, audit) and help
158+
- **7 Codex slash commands** — thin command wrappers over the same skill workflows
159159
- **2 Agents** — a universal assistant and a read-only auditor
160160
- **Hooks** — session-start context loading, MCP-only write enforcement, post-mutation validation, cascade staleness detection
161161

@@ -165,14 +165,12 @@ The plugin assumes the [Archcore CLI](https://docs.archcore.ai/cli/install/) is
165165

166166
Describe what you want in plain English — Archcore routes it to the right skill and document flow. The command is a shortcut, not the interface.
167167

168+
- **First-time onboarding**`/archcore:init`
168169
- **Understand what applies before a change**`/archcore:context`
169170
- **Document a module, component, or API**`/archcore:capture`
170-
- **Record a finalized decision**`/archcore:decide`
171-
- **Establish a team standard**`/archcore:standard`
172-
- **Plan a feature end-to-end**`/archcore:plan`
173-
- **Review documentation health (dashboard or `--deep` audit)**`/archcore:review`
174-
- **Detect stale docs after code drift**`/archcore:actualize`
175-
- **First-time onboarding**`/archcore:bootstrap`
171+
- **Record a finalized decision**`/archcore:decide` (optionally codified as rule + guide or formalized as spec + plan)
172+
- **Plan a feature end-to-end**`/archcore:plan` (switch flows with `--track product|feature|sources|iso`)
173+
- **Documentation health**`/archcore:audit` (dashboard, `--deep` audit, or `--drift` for staleness detection)
176174
- **Navigate the system**`/archcore:help`
177175

178176
### Document types (18)
@@ -200,22 +198,27 @@ Archcore supports 18 document types. There are no standalone per-type skills; in
200198
| `task-type` | experience | Recurring task patterns with proven workflows |
201199
| `cpat` | experience | Before/after code pattern changes with scope |
202200

203-
Create documents through intent commands such as `/archcore:decide`, `/archcore:capture`, and `/archcore:plan`; use `/archcore:sources-track` or `/archcore:iso-track` for niche requirements cascades. For exact type-level control, call `mcp__archcore__create_document` directly with the matching `type` parameter.
201+
Create documents through intent commands such as `/archcore:decide`, `/archcore:capture`, and `/archcore:plan`; for niche requirements cascades use `/archcore:plan --track sources` or `--track iso`. For exact type-level control, call `mcp__archcore__create_document` directly with the matching `type` parameter.
204202

205-
### Tracks (6)
203+
### Multi-document flows
206204

207-
Tracks orchestrate multi-document flows. Each step builds on the previous one, with proper relations created automatically.
205+
Two intent commands chain documents automatically — `/archcore:plan` for requirements cascades and `/archcore:decide` for decision continuations.
208206

209-
| Track | Flow | Use when |
210-
| -------------------- | -------------------------------------------- | ------------------------------------------------------ |
211-
| `product-track` | idea → prd → plan | Lightweight product flow — simple and fast |
212-
| `sources-track` | mrd → brd → urd | Discovery-focused — market, business, then user inputs |
213-
| `iso-track` | brs → strs → syrs → srs | Formal ISO 29148 cascade with traceability |
214-
| `architecture-track` | adr → spec → plan | Design decisions flowing into implementation |
215-
| `standard-track` | adr → rule → guide | Decision → codified standard → instructions |
216-
| `feature-track` | prd → spec → plan → task-type | Full feature lifecycle |
207+
**`/archcore:plan` tracks** — switch flow with `--track`:
217208

218-
Invoke: `/archcore:product-track`, `/archcore:architecture-track`, etc.
209+
| Track | Flow | Use when |
210+
| ---------------------- | -------------------------------------------- | ------------------------------------------------------ |
211+
| `product` *(default)* | idea → prd → plan | Lightweight product flow — simple and fast |
212+
| `feature` | prd → spec → plan → task-type | Full feature lifecycle with formal contract |
213+
| `sources` | mrd → brd → urd | Discovery-focused — market, business, user inputs |
214+
| `iso` | brs → strs → syrs → srs | Formal ISO 29148 cascade with traceability |
215+
216+
**`/archcore:decide` continuations** — offered after an ADR:
217+
218+
| Continuation | Chain | Use when |
219+
| ------------------ | --------------------------- | ------------------------------------------------- |
220+
| Standard cascade | adr → rule → guide | Decision → codified standard → instructions |
221+
| Architecture cascade | adr → spec → plan | Design decisions flowing into implementation |
219222

220223
## Agents
221224

agents/archcore-assistant.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Focus your expertise on what MCP instructions do NOT provide:
6060
- **Elicitation**: what questions to ask before creating each document type
6161
- **Content composition**: how to structure rich content from user answers
6262
- **Disambiguation**: when to use ADR vs RFC, PRD vs MRD, rule vs guide
63-
- **Orchestration**: how to chain documents in tracks (product-track, sources-track, ISO cascade, etc.)
63+
- **Orchestration**: how to chain documents in plan tracks (product/feature/sources/iso flows under `/archcore:plan --track`) and decide continuations (rule + guide, or spec + plan after an ADR)
6464
- **Relation patterns**: which relation types are typical for each document type
6565

6666
# Working Guidelines

bin/check-cascade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ rm -f /tmp/archcore_cascade_$$ 2>/dev/null
5959
DOC_SHORT=$(printf '%s' "$DOC_REL" | sed 's|.*/||; s|\..*\.md$||; s|-| |g')
6060
AFFECTED_LINES=$(printf '%s' "$AFFECTED" | tr '\n' ' ')
6161

62-
archcore_hook_info "[Archcore Cascade] Updated \"${DOC_SHORT}\". Documents that may need review: ${AFFECTED_LINES}Run /archcore:actualize for detailed analysis."
62+
archcore_hook_info "[Archcore Cascade] Updated \"${DOC_SHORT}\". Documents that may need review: ${AFFECTED_LINES}Run /archcore:audit --drift for detailed analysis."
6363

6464
exit 0

bin/check-staleness

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ if [ "$AFFECTED_COUNT" -gt 0 ]; then
7171
printf '[Archcore Staleness] %s source files changed since last documentation update.\n' "$CHANGED_COUNT"
7272
printf 'Potentially affected documents:\n'
7373
printf '%s' "$AFFECTED" | head -10
74-
printf 'Run /archcore:actualize for detailed analysis.\n'
74+
printf 'Run /archcore:audit --drift for detailed analysis.\n'
7575

7676
# Touch the stamp so we don't re-warn for 24h.
7777
mkdir -p "$STAMP_DIR" 2>/dev/null || true

bin/session-start

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ _archcore_emit_info() {
6060
if [ ! -d ".archcore" ]; then
6161
_init_msg="[Archcore] no .archcore/ directory in this project yet. When the user asks for any Archcore operation (create ADR, audit docs, etc.), call mcp__archcore__init_project once to initialize, then proceed. Do NOT write to .archcore/ directly — hooks will block it."
6262
if [ "${ARCHCORE_HIDE_EMPTY_NUDGE:-}" != "1" ]; then
63-
_init_msg="${_init_msg} After init, suggest the user run /archcore:bootstrap to seed initial content (stack rule, run-the-app guide, optional import of existing CLAUDE.md / AGENTS.md / .cursorrules). Skip with ARCHCORE_HIDE_EMPTY_NUDGE=1."
63+
_init_msg="${_init_msg} After init, suggest the user run /archcore:init to seed initial content (stack rule, run-the-app guide, optional import of existing CLAUDE.md / AGENTS.md / .cursorrules). Skip with ARCHCORE_HIDE_EMPTY_NUDGE=1."
6464
fi
6565
_archcore_emit_info "$_init_msg"
6666
exit 0
@@ -74,7 +74,7 @@ printf '%s' "$ARCHCORE_RAW_STDIN" | archcore hooks "$ARCHCORE_HOST" session-star
7474
# never competes with the CLI hook's structured output for the same JSON slot.
7575
if [ "${ARCHCORE_HIDE_EMPTY_NUDGE:-}" != "1" ] && archcore_is_functionally_empty ".archcore"; then
7676
echo ""
77-
echo "[Archcore] .archcore/ is empty. Run /archcore:bootstrap to seed a stack rule, a run-the-app guide, and (optionally) imports from existing agent-instruction files like CLAUDE.md or AGENTS.md. Skip with ARCHCORE_HIDE_EMPTY_NUDGE=1."
77+
echo "[Archcore] .archcore/ is empty. Run /archcore:init to seed a stack rule, a run-the-app guide, and (optionally) imports from existing agent-instruction files like CLAUDE.md or AGENTS.md. Skip with ARCHCORE_HIDE_EMPTY_NUDGE=1."
7878
fi
7979

8080
# Run staleness check (code-document drift detection)

commands/actualize.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

commands/architecture-track.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

commands/audit.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
description: Audit Archcore documentation health; --deep for full audit, --drift for staleness.
3+
argument-hint: "[--deep] [--drift] [category, tag, or scope]"
4+
---
5+
6+
# /archcore:audit
7+
8+
## Arguments
9+
10+
The user invoked this command with: $ARGUMENTS
11+
12+
## Instructions
13+
14+
Use the Archcore skill at `skills/audit/SKILL.md`.
15+

commands/bootstrap.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)