@contextium/cli 1.0.17 → 1.0.19

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,3 @@
1
+ import { Command } from 'commander';
2
+ export declare const loadSkillCommand: Command;
3
+ //# sourceMappingURL=load-skill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-skill.d.ts","sourceRoot":"","sources":["../../src/commands/load-skill.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAQnC,eAAO,MAAM,gBAAgB,SA6BzB,CAAA"}
@@ -0,0 +1,35 @@
1
+ import { Command } from 'commander';
2
+ import fs from 'fs/promises';
3
+ import path from 'path';
4
+ import { fileURLToPath } from 'url';
5
+ import { chalk } from '../lib/output.js';
6
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
7
+ export const loadSkillCommand = new Command('load-skill')
8
+ .description('Output bundled Contextium CLI SKILL.md for local agent context loading')
9
+ .option('--format <format>', 'Output format (text|json)', 'text')
10
+ .option('--name <name>', 'Skill name to load', 'contextium-cli')
11
+ .action(async (options) => {
12
+ try {
13
+ if (options.name !== 'contextium-cli') {
14
+ console.log(chalk.red(`Unknown skill '${options.name}'.`));
15
+ console.log(chalk.dim('Available skills: contextium-cli'));
16
+ process.exit(1);
17
+ }
18
+ const skillPath = path.join(__dirname, '..', '..', 'skills', 'ium', 'SKILL.md');
19
+ const content = await fs.readFile(skillPath, 'utf-8');
20
+ if (options.format === 'json') {
21
+ console.log(JSON.stringify({
22
+ name: 'contextium-cli',
23
+ source: 'skills/ium/SKILL.md',
24
+ content,
25
+ }, null, 2));
26
+ return;
27
+ }
28
+ console.log(content);
29
+ }
30
+ catch (error) {
31
+ console.log(chalk.red(`Failed to load skill: ${error.message}`));
32
+ process.exit(1);
33
+ }
34
+ });
35
+ //# sourceMappingURL=load-skill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-skill.js","source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AC9B,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC;gBACzB,IAAI,EAAE,gBAAgB;gBACtB,MAAM,EAAE,qBAAqB;gBAC7B,OAAO;aACR,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAA;YACZ,OAAM;QACR,CAAC;QAED,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;IACtB,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,yBAAyB,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAA;QAChE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACjB,CAAC;AACH,CAAC,CAAC,CAAA"}
package/dist/index.js CHANGED
@@ -16,6 +16,7 @@ import { filesCommand } from './commands/files.js';
16
16
  import { findCommand } from './commands/find.js';
17
17
  import { setupClaudeCommand } from './commands/setup-claude.js';
18
18
  import { setupCommand } from './commands/setup.js';
19
+ import { loadSkillCommand } from './commands/load-skill.js';
19
20
  import { tagsCommand } from './commands/tags.js';
20
21
  import { agentsCommand } from './commands/agents.js';
21
22
  import { skillsCommand } from './commands/skills.js';
@@ -38,7 +39,7 @@ program
38
39
  .addHelpText('after', `
39
40
  Command Groups:
40
41
  Auth: login, logout, whoami
41
- Setup: setup, init, setup-claude
42
+ Setup: setup, init, setup-claude, load-skill
42
43
  Browse: workspaces, libraries, files, find, structure
43
44
  Content: cat, search, sync, status
44
45
  Create: create-library, new, agents create, skills create
@@ -69,6 +70,7 @@ Examples:
69
70
  contextium marketplace list --query "code review" Browse marketplace
70
71
  contextium marketplace show code-review-assistant View listing details
71
72
  contextium marketplace install code-review-assistant -w my-ws Install listing
73
+ contextium load-skill Output bundled SKILL.md
72
74
 
73
75
  Note: All workspace-scoped commands accept -w, --workspace <name|slug>.
74
76
 
@@ -84,6 +86,7 @@ program.addCommand(whoamiCommand);
84
86
  program.addCommand(setupCommand);
85
87
  program.addCommand(initCommand);
86
88
  program.addCommand(setupClaudeCommand);
89
+ program.addCommand(loadSkillCommand);
87
90
  // Data commands
88
91
  program.addCommand(workspacesCommand);
89
92
  program.addCommand(workflowsCommand);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,s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BpF;AAED,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CAkCvD;AAED,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC,CAsB3D"}
1
+ {"version":3,"file":"claude-permissions.d.ts","sourceRoot":"","sources":["../../src/lib/claude-permissions.ts"],"names":[],"mappings":"AAWA,wBAAgB,eAAe,CAAC,KAAK,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAInE;AAED,wBAAsB,4BAA4B,CAAC,KAAK,GAAE,QAAQ,GAAG,SAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,CAQ3G;AAED,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAoBpF;AAED,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CAkCvD;AAED,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC,CAwB3D"}
@@ -92,7 +92,9 @@ export async function installStatuslineHook() {
92
92
  if (error.code !== 'ENOENT')
93
93
  throw error;
94
94
  }
95
- settings.statusLine = { type: 'command', command: `node "${statuslineDestPath}"` };
96
- await fs.writeFile(settingsPath, JSON.stringify(settings, null, 2) + '\n', 'utf-8');
95
+ if (!settings.statusLine) {
96
+ settings.statusLine = { type: 'command', command: `node "${statuslineDestPath}"` };
97
+ await fs.writeFile(settingsPath, JSON.stringify(settings, null, 2) + '\n', 'utf-8');
98
+ }
97
99
  }
98
100
  //# sourceMappingURL=claude-permissions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"claude-permissions.js","sourceRoot":"","sources":["../../src/lib/claude-permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAA;AAC5B,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,MAAM,IAAI,CAAA;AACnB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAA;AAEnC,MAAM,UAAU,GAAG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CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;IAE/D,IAAI,QAAQ,GAAQ,EAAE,CAAA;IACtB,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC,CAAA;QACxD,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;IAChC,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,IAAI,KAAK,CAAC,IAAI,KAAK,QAAQ;YAAE,MAAM,KAAK,CAAA;IAC1C,CAAC;IAED,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;QACzB,QAAQ,CAAC,UAAU,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,kBAAkB,GAAG,EAAE,CAAA;QAClF,MAAM,EAAE,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC,CAAA;IACrF,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contextium/cli",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "Command-line tool for managing Contextium documentation, agents, skills, and workflows — pipe context to AI coding assistants",
5
5
  "keywords": [
6
6
  "contextium",
@@ -0,0 +1,73 @@
1
+ ---
2
+ name: contextium-cli
3
+ summary: Concise command reference for the Contextium CLI. Use exact commands and flags shown here.
4
+ allowed-tools:
5
+ - Bash(contextium *)
6
+ ---
7
+
8
+ # Contextium CLI Quick Skill
9
+
10
+ Use this file when orchestrating the local `contextium` CLI.
11
+
12
+ ## Core Rules
13
+ - Workspace-scoped commands should include `-w <workspace-name-or-slug>`.
14
+ - Use `workspaces` (plural), `libraries` (plural), and grouped subcommands like `agents list`.
15
+ - Load workflows with `contextium workflow "<name>" -w <workspace>`.
16
+
17
+ ## Command Map (Short)
18
+
19
+ | Command | What it does | Example |
20
+ |---|---|---|
21
+ | `contextium login` | Sign in with Entra auth. | `contextium login` |
22
+ | `contextium logout` | Clear local auth token. | `contextium logout` |
23
+ | `contextium whoami` | Show account + token status. | `contextium whoami` |
24
+ | `contextium init --api-key <key> -w <ws>` | Initialize `.contextiumrc`. | `contextium init --api-key $CTX_KEY -w cloudvoice` |
25
+ | `contextium setup-claude [--global|--project]` | Configure Claude Code permission + slash commands. | `contextium setup-claude --project` |
26
+ | `contextium workspaces` | List accessible workspaces. | `contextium workspaces` |
27
+ | `contextium libraries -w <ws>` | List context libraries in workspace. | `contextium libraries -w cloudvoice` |
28
+ | `contextium files <library> -w <ws>` | List files in a library. | `contextium files "02-retention-intel" -w cloudvoice` |
29
+ | `contextium structure <library> -w <ws>` | Show folder/file tree in a library. | `contextium structure "Knowledgebase" -w cloudvoice` |
30
+ | `contextium find <name> -w <ws>` | Find files by filename. | `contextium find "retention" -w cloudvoice` |
31
+ | `contextium cat --all -w <ws>` | Print workspace file contents. | `contextium cat --all -w cloudvoice` |
32
+ | `contextium cat "<file>" -w <ws>` | Print specific file content. | `contextium cat "Q2 Save Offers" -w cloudvoice --no-cache` |
33
+ | `contextium search "<query>" -w <ws>` | Full-text search docs. | `contextium search "churn" -w cloudvoice --limit 10` |
34
+ | `contextium sync -w <ws>` | Refresh local cache from workspace. | `contextium sync -w cloudvoice` |
35
+ | `contextium status -w <ws>` | Show cache/sync status. | `contextium status -w cloudvoice` |
36
+ | `contextium create-library -w <ws> -n <name>` | Create context library. | `contextium create-library -w cloudvoice -n "06-playbooks"` |
37
+ | `contextium update-library <library> -w <ws>` | Rename/update library metadata. | `contextium update-library "06-playbooks" -w cloudvoice -d "Sales playbooks"` |
38
+ | `contextium new <library> -t <title> -p <path> -c <content> -w <ws>` | Create a file in library. | `contextium new "06-playbooks" -t "Winback" -p winback.md -c "# Winback" -w cloudvoice` |
39
+ | `contextium edit <fileId> -c <content> [-m <msg>] [--version]` | Update file content/metadata. | `contextium edit <fileId> -c "# Updated" -m "refresh" --version` |
40
+ | `contextium delete <fileId> --confirm` | Soft-delete a file. | `contextium delete <fileId> --confirm` |
41
+ | `contextium versions <fileId>` | Show file version history. | `contextium versions <fileId>` |
42
+ | `contextium agents list -w <ws>` | List agents. | `contextium agents list -w cloudvoice` |
43
+ | `contextium agents create -w <ws> -n <name>` | Create agent. | `contextium agents create -w cloudvoice -n "Retention Agent"` |
44
+ | `contextium agents update -w <ws> -a <agent> ...` | Update agent fields. | `contextium agents update -w cloudvoice -a "Retention Agent" -d "Daily scripts"` |
45
+ | `contextium agents add-skill -w <ws> -a <agent> -s <skill>` | Attach skill to agent. | `contextium agents add-skill -w cloudvoice -a "Retention Agent" -s "Call Guidelines"` |
46
+ | `contextium agents remove-skill -w <ws> -a <agent> -s <skill>` | Detach skill from agent. | `contextium agents remove-skill -w cloudvoice -a "Retention Agent" -s "Call Guidelines"` |
47
+ | `contextium skills list -w <ws>` | List skills (Skills Library files). | `contextium skills list -w cloudvoice` |
48
+ | `contextium skills create -w <ws> -n <name> [-c <md>]` | Create skill doc. | `contextium skills create -w cloudvoice -n "Objection Handling"` |
49
+ | `contextium tags types -w <ws>` | List tag types. | `contextium tags types -w cloudvoice` |
50
+ | `contextium tags create-type -w <ws> -n <name>` | Create tag type. | `contextium tags create-type -w cloudvoice -n Topic` |
51
+ | `contextium tags list -w <ws>` | List tags. | `contextium tags list -w cloudvoice` |
52
+ | `contextium tags create -w <ws> -t <type> -v <value>` | Create tag. | `contextium tags create -w cloudvoice -t topic -v retention` |
53
+ | `contextium tags apply -w <ws> -t <tag> -f <fileId>` | Apply tag to one file. | `contextium tags apply -w cloudvoice -t topic:retention -f <fileId>` |
54
+ | `contextium tags apply-bulk -w <ws> -t <tag> -f <id1,id2>` | Apply tag to many files. | `contextium tags apply-bulk -w cloudvoice -t topic:retention -f <id1,id2>` |
55
+ | `contextium tags remove -w <ws> -t <tag> -f <fileId>` | Remove tag from file. | `contextium tags remove -w cloudvoice -t topic:retention -f <fileId>` |
56
+ | `contextium tags search -w <ws> -t <tag1,tag2>` | Find files by tags. | `contextium tags search -w cloudvoice -t topic:retention` |
57
+ | `contextium tags file-tags -w <ws> -f <fileId>` | List tags on a file. | `contextium tags file-tags -w cloudvoice -f <fileId>` |
58
+ | `contextium tags update -w <ws> -t <tag> ...` | Update tag value/type/color. | `contextium tags update -w cloudvoice -t topic:retention -c "#22c55e"` |
59
+ | `contextium tags type-get -w <ws> -t <type>` | Show one tag type. | `contextium tags type-get -w cloudvoice -t topic` |
60
+ | `contextium tags type-update -w <ws> -t <type> ...` | Update tag type. | `contextium tags type-update -w cloudvoice -t topic -n "Topic Area"` |
61
+ | `contextium workflows list -w <ws>` | List workflows. | `contextium workflows list -w cloudvoice` |
62
+ | `contextium workflows create -w <ws> -n <name> [--agents ... --skills ... --libraries ...]` | Create workflow bundle. | `contextium workflows create -w cloudvoice -n "Daily Retention Prep" --agents "Retention Agent" --libraries "02-retention-intel"` |
63
+ | `contextium workflows update -w <ws> --id <workflow>` | Update workflow config. | `contextium workflows update -w cloudvoice --id "Daily Retention Prep" --tags topic:retention` |
64
+ | `contextium workflow "<name>" -w <ws> [--sync]` | Load workflow and show connected resources. | `contextium workflow "Daily Retention Prep" -w cloudvoice --sync` |
65
+ | `contextium marketplace list` | Browse marketplace listings. | `contextium marketplace list --query retention` |
66
+ | `contextium marketplace show <slug>` | Show listing details. | `contextium marketplace show code-review-assistant` |
67
+ | `contextium marketplace install <slug> -w <ws>` | Install listing into workspace. | `contextium marketplace install code-review-assistant -w cloudvoice` |
68
+ | `contextium load-skill` | Print this skill file for agent context injection. | `contextium load-skill` |
69
+
70
+ ## Fast Patterns
71
+ - Load ready-to-use context: `contextium workflow "<name>" -w <ws> --sync`
72
+ - Pull one source doc: `contextium cat "<file-title>" -w <ws> --no-cache`
73
+ - Build from scratch: `create-library` → `new` → `skills create` → `agents create` → `workflows create`
@@ -17,10 +17,6 @@ Output the following help reference directly — no tools needed:
17
17
  ╚══════════════════════════════════════════════════════════════╝
18
18
 
19
19
  GETTING STARTED
20
- /ium:scan-existing Scan an existing codebase and write analysis docs to
21
- Contextium — stack, architecture, conventions, concerns.
22
- Run this before /ium:new-project on existing projects.
23
-
24
20
  /ium:new-project Set up a new Contextium project from scratch —
25
21
  auth, workspace, libraries, agents, skills, workflow
26
22
 
@@ -35,8 +31,6 @@ CONTENT
35
31
  /ium:create Create an agent, skill, or workflow interactively
36
32
  /ium:search Search docs by query, filename, or tag
37
33
  /ium:workflow Load a workflow and sync its resources into context
38
- /ium:resume-project Resume a project from a session handoff — picks up
39
- exactly where you left off in the project plan
40
34
 
41
35
  MARKETPLACE
42
36
  /ium:marketplace Browse, install, or publish skills, agents & MCP servers
@@ -0,0 +1,211 @@
1
+ ---
2
+ name: ium:new-project-legacy
3
+ description: Legacy new-project setup flow (deprecated; kept for reference)
4
+ allowed-tools:
5
+ - Bash
6
+ - mcp__contextium__list_workspaces
7
+ - mcp__contextium__create_context_library
8
+ - mcp__contextium__list_context_libraries
9
+ - mcp__contextium__create_agent
10
+ - mcp__contextium__list_agents
11
+ - mcp__contextium__create_skill
12
+ - mcp__contextium__list_skills
13
+ - mcp__contextium__create_workflow
14
+ - mcp__contextium__list_workflows
15
+ - mcp__contextium__list_tags
16
+ - mcp__contextium__list_tag_types
17
+ - mcp__contextium__create_tag
18
+ - mcp__contextium__create_tag_type
19
+ - AskUserQuestion
20
+ ---
21
+
22
+ <objective>
23
+ Set up a new Contextium project intelligently — understand what the user is trying to do, quietly analyse the workspace for existing resources, then recommend exactly what to create (libraries, agents, skills, tags, workflow) with clear reasoning. Get confirmation before creating anything.
24
+ </objective>
25
+
26
+ <mode-detection>
27
+ Run this once at the start, silently, to determine which mode to use for the entire session:
28
+
29
+ ```bash
30
+ command -v contextium &>/dev/null && echo "cli" || echo "no-cli"
31
+ ```
32
+
33
+ - If `cli`: use CLI commands throughout. Do not attempt MCP tools.
34
+ - If `no-cli`: check if mcp__contextium__list_workspaces is available. If yes, use MCP tools throughout.
35
+ - If neither: tell the user "Contextium doesn't appear to be installed. Install the CLI with `npm install -g @contextium/cli` or connect the MCP server, then re-run this." Stop here.
36
+
37
+ Do not mention the mode to the user. Pick one path and stick with it.
38
+ </mode-detection>
39
+
40
+ <process>
41
+
42
+ <step name="check_auth">
43
+ **CLI only.** Run silently:
44
+ ```bash
45
+ contextium whoami 2>/dev/null | grep -E "Token:|Name:" || echo "unauthenticated"
46
+ ```
47
+ If token is expired or unauthenticated, tell the user: "Your Contextium session has expired — run `contextium login` in your terminal, then come back and re-run this." Stop here.
48
+
49
+ MCP users are already authenticated via the server connection — skip this step.
50
+ </step>
51
+
52
+ <step name="select_workspace">
53
+ **CLI:** run `contextium workspace list 2>/dev/null` silently, parse workspace names.
54
+ **MCP:** call mcp__contextium__list_workspaces silently.
55
+
56
+ Ask: "Which workspace is this project for?"
57
+
58
+ Present names only — no IDs, no raw output.
59
+ </step>
60
+
61
+ <step name="project_description">
62
+ Ask the user this question exactly:
63
+
64
+ "Tell me about your project — what are you trying to do, what topics are involved, and what kind of work will you be doing with this? The more detail you give me, the better I can set things up for you."
65
+
66
+ Wait for their response. Store it as the project description. Do not proceed until you have a meaningful answer.
67
+ </step>
68
+
69
+ <step name="quiet_analysis">
70
+ Silently fetch all existing workspace resources. Do not show raw output or errors. Show only these progress lines as you go:
71
+
72
+ ```
73
+ Searching libraries...
74
+ Searching agents...
75
+ Searching skills...
76
+ Searching tags...
77
+ ```
78
+
79
+ **CLI:**
80
+ ```bash
81
+ contextium library list --workspace <slug> 2>/dev/null
82
+ contextium agent list --workspace <slug> 2>/dev/null
83
+ contextium skill list --workspace <slug> 2>/dev/null
84
+ contextium tag list --workspace <slug> 2>/dev/null
85
+ ```
86
+
87
+ **MCP:** call list_context_libraries, list_agents, list_skills, list_tags — all for the selected workspace. Suppress any errors silently.
88
+
89
+ After all four searches complete, output this line:
90
+ ```
91
+ Creating Contextium setup plan...
92
+ ```
93
+
94
+ Then analyse the results against the project description:
95
+ - Which existing libraries (if any) are relevant to what the user described?
96
+ - Which existing agents (if any) could serve this project?
97
+ - Which existing skills (if any) are applicable?
98
+ - Which existing tags/tag types (if any) relate to the topics mentioned?
99
+
100
+ Internally categorise everything as: **reuse** (relevant, already exists) or **create** (needed, does not exist).
101
+ </step>
102
+
103
+ <step name="intelligent_plan">
104
+ Based on the project description and the analysis, build a setup plan. Think through:
105
+
106
+ **Libraries:** What distinct knowledge areas did the user mention? Each major topic or type of content that needs to be stored separately should be its own library. If an existing library already covers one of these, mark it for reuse.
107
+
108
+ **Agents:** What kind of AI assistant roles would serve this project? Think about what tasks the user will perform — research, writing, analysis, Q&A, etc. If an existing agent fits, mark it for reuse.
109
+
110
+ **Skills:** What reusable knowledge blocks would help agents working on this project? Think about domain-specific guidelines, reference material, or persistent context the agent needs. If an existing skill fits, mark it for reuse.
111
+
112
+ **Tags:** What topic or category labels would make sense for organising content in this project? Look for existing tag types that match. If none exist, suggest new ones. Think in terms of tag categories (e.g. `topic`, `source`, `status`) and the specific tag values within them (e.g. `topic:space-travel`, `topic:rocket-engineering`).
113
+
114
+ **Workflow:** Propose one workflow name that bundles everything together for quick loading.
115
+
116
+ Present the plan in this format (omit any section that has nothing in it):
117
+
118
+ ---
119
+
120
+ Here's what I'll set up for you:
121
+
122
+ **New libraries to create**
123
+ - "Library Name" — reason why this is needed
124
+
125
+ **Existing libraries to reuse**
126
+ - "Library Name" — why it's relevant
127
+
128
+ **New agents to create**
129
+ - "Agent Name" — what it will do for this project
130
+
131
+ **Existing agents to reuse**
132
+ - "Agent Name" — why it fits
133
+
134
+ **New skills to create**
135
+ - "Skill Name" — what knowledge it will hold
136
+
137
+ **Existing skills to reuse**
138
+ - "Skill Name" — why it fits
139
+
140
+ **Tags to create**
141
+ - `category:value` — why this label is useful
142
+
143
+ **Workflow**
144
+ - "Workflow Name" — bundles everything above for quick loading
145
+
146
+ Shall I go ahead and create all of this?
147
+
148
+ ---
149
+
150
+ Wait for the user to confirm, adjust, or say skip on any item before proceeding.
151
+ </step>
152
+
153
+ <step name="create_resources">
154
+ Only create what the user confirmed. Create in this order: tag types → tags → libraries → skills → agents → workflow.
155
+
156
+ Show `✓ Created "Name"` for each item as it is created. Show `↗ Reusing "Name"` for each existing resource being included.
157
+
158
+ Suppress all errors silently — if something fails, skip it quietly and note it in the summary.
159
+
160
+ **CLI commands:**
161
+ ```bash
162
+ contextium library create "<name>" --workspace <slug>
163
+ contextium agent create "<name>" --workspace <slug>
164
+ contextium skill create "<name>" --workspace <slug>
165
+ contextium workflow create "<name>" --workspace <slug>
166
+ contextium tag create "<value>" --type <type-slug> --workspace <slug>
167
+ contextium tag-type create "<name>" --workspace <slug>
168
+ ```
169
+
170
+ **MCP:** use the corresponding create_* tools for each resource type.
171
+ </step>
172
+
173
+ <step name="load_workflow">
174
+ After all resources are created, automatically load the workflow without asking the user. Run silently:
175
+
176
+ **CLI:** `contextium workflow load "<workflow-name>" --workspace <slug> 2>/dev/null`
177
+ **MCP:** call mcp__contextium__load_workflow with the workflow name and workspace.
178
+
179
+ Do not tell the user to load it themselves — just load it as part of setup.
180
+ </step>
181
+
182
+ <step name="summary">
183
+ Show a clean final summary:
184
+
185
+ ```
186
+ ✓ Project ready
187
+
188
+ Workspace: <name>
189
+ Libraries: <list — new + reused>
190
+ Agents: <list — new + reused, or none>
191
+ Skills: <list — new + reused, or none>
192
+ Tags: <list, or none>
193
+ Workflow: <name> — loaded and ready
194
+ ```
195
+
196
+ If anything failed to create, add a single line at the end:
197
+ `⚠ Could not create: <list of names> — you can add these manually.`
198
+ </step>
199
+
200
+ </process>
201
+
202
+ <rules>
203
+ - Never say "the wizard", "Contextium would like to know", or "the next step is"
204
+ - Never show raw bash output, API responses, or IDs to the user
205
+ - Run all checks and fetches silently — only surface progress labels and the final plan
206
+ - Only ask questions when genuinely needed — the description step and the confirmation step
207
+ - Do not ask the user what to create — figure it out from the description, then ask them to confirm
208
+ - If a resource already exists and is relevant, always prefer reuse over creating a duplicate
209
+ - The plan report must explain the reasoning for each item — not just list names
210
+ - Never create anything before the user confirms the plan
211
+ </rules>
@@ -10,17 +10,6 @@ Search across Contextium documentation and return matching files with their cont
10
10
  </objective>
11
11
 
12
12
  <process>
13
- **Step 1 — Check loaded context first**
14
- If a workflow session context block is active in this conversation, look there first. If the answer is found, respond from it without running any commands.
15
-
16
- **Step 2 — Ask before expanding scope**
17
- If the loaded context doesn't have what the user needs, ask:
18
- "That's not in the loaded workflow context. Would you like me to search the full workspace?"
19
-
20
- Only proceed to step 3 after the user confirms.
21
-
22
- **Step 3 — Search the full workspace**
23
-
24
13
  Run a search across the workspace:
25
14
 
26
15
  ```bash
@@ -29,23 +29,7 @@ Present workflow names only. Ask the user which one to load.
29
29
  contextium cat --all -w <workspace> 2>/dev/null
30
30
  ```
31
31
 
32
- 4. Persist the loaded workspace and workflow to `.contextiumrc` so it can be auto-restored after `/clear`:
33
-
34
- ```bash
35
- node -e "
36
- try {
37
- const fs = require('fs');
38
- const rc = JSON.parse(fs.readFileSync('.contextiumrc', 'utf8'));
39
- rc.last_workflow = '<workflow-name>';
40
- rc.last_workspace = '<workspace-slug-or-name>';
41
- fs.writeFileSync('.contextiumrc', JSON.stringify(rc, null, 2));
42
- } catch(e) {}
43
- " 2>/dev/null
44
- ```
45
-
46
- Do this silently — never mention it to the user.
47
-
48
- 5. Output a session context block in this exact format so all resource IDs and names are available for the rest of the session without re-querying:
32
+ 4. Output a session context block in this exact format so all resource IDs and names are available for the rest of the session without re-querying:
49
33
 
50
34
  ```
51
35
  --- WORKFLOW SESSION CONTEXT ---
@@ -78,13 +62,4 @@ Once the session context block has been output, these rules apply for the rest o
78
62
  - Do NOT re-verify or re-check which libraries, agents, or skills exist — they are already known
79
63
  - All tool calls and checks must be silent — never show the user raw API responses, tool call names, or intermediate results
80
64
  - Only surface the final answer or the created/updated content to the user
81
-
82
- **Scope rules — what is "available":**
83
- - When the user asks "what agents/skills/libraries do I have?" or "what's available?" — answer ONLY from the session context block above. Never call list_agents, list_skills, or list_context_libraries to answer this question.
84
- - If the user asks about something not in the session context, say so and ask if they want you to search the full workspace before doing so.
85
-
86
- **Search order:**
87
- 1. Check the loaded session context first
88
- 2. If not found there, say: "That's not in the loaded workflow. Would you like me to search the full workspace?"
89
- 3. Only query the full workspace after the user confirms
90
65
  </session-rules>
@@ -13,28 +13,27 @@ Switch the active Contextium workspace with full context handoff — save what's
13
13
  <process>
14
14
 
15
15
  <step name="show_current">
16
- Silently fetch the current workspace and available workspaces:
16
+ Show the current workspace and list available workspaces:
17
17
 
18
18
  ```bash
19
- cat .contextiumrc 2>/dev/null
20
- ```
21
-
22
- **CLI:** `contextium workspaces 2>/dev/null`
23
- **MCP:** call mcp__contextium__list_workspaces
19
+ # Show current workspace from .contextiumrc
20
+ cat .contextiumrc 2>/dev/null | grep -E "workspace" | head -5 || echo "No .contextiumrc found"
24
21
 
25
- Parse the results internally — extract names and slugs only. Never show IDs, UUIDs, or raw command output to the user.
22
+ # List all available workspaces
23
+ contextium workspaces
24
+ ```
26
25
 
27
26
  Display clearly:
28
27
  ```
29
28
  Current workspace: <name>
30
29
 
31
30
  Available workspaces:
32
- 1. Workspace A
33
- 2. Workspace B
34
- 3. Workspace C
31
+ 1. workspace-a
32
+ 2. workspace-b
33
+ 3. workspace-c
35
34
  ```
36
35
 
37
- Ask the user which workspace to switch to using AskUserQuestion with workspace **names only** as options — no IDs, no slugs. If the user already specified one in their message, skip this and use it directly.
36
+ Ask the user which workspace to switch to using AskUserQuestion with the workspace names as options. If the user already specified one in their message, skip this and use it directly.
38
37
  </step>
39
38
 
40
39
  <step name="save_handoff">