@contextium/cli 1.0.5 → 1.0.6
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/package.json +1 -1
- package/skills/ium/workflow.md +45 -10
package/package.json
CHANGED
package/skills/ium/workflow.md
CHANGED
|
@@ -3,28 +3,63 @@ name: ium:workflow
|
|
|
3
3
|
description: Load a Contextium workflow and sync its resources into context — bundles agents, skills, and libraries for a project
|
|
4
4
|
allowed-tools:
|
|
5
5
|
- Bash
|
|
6
|
+
- mcp__contextium__load_workflow
|
|
7
|
+
- mcp__contextium__list_workflows
|
|
6
8
|
---
|
|
7
9
|
|
|
8
10
|
<objective>
|
|
9
|
-
Load a Contextium workflow and bring its resources into the current context.
|
|
11
|
+
Load a Contextium workflow and bring its resources into the current context. Once loaded, output a structured session context block so Claude never needs to re-list or re-check workspace resources during this session.
|
|
10
12
|
</objective>
|
|
11
13
|
|
|
12
14
|
<process>
|
|
13
|
-
1.
|
|
15
|
+
1. If no workflow name was specified, list available workflows so the user can pick one. Do this silently — do not show raw output:
|
|
16
|
+
|
|
17
|
+
**CLI:** `contextium workflows list -w <workspace> 2>/dev/null`
|
|
18
|
+
**MCP:** call mcp__contextium__list_workflows
|
|
19
|
+
|
|
20
|
+
Present workflow names only. Ask the user which one to load.
|
|
21
|
+
|
|
22
|
+
2. Load the chosen workflow:
|
|
23
|
+
|
|
24
|
+
**CLI:** `contextium workflow "<workflow-name>" -w <workspace> --sync 2>/dev/null`
|
|
25
|
+
**MCP:** call mcp__contextium__load_workflow
|
|
26
|
+
|
|
27
|
+
3. Output synced file content to context (CLI only):
|
|
14
28
|
```bash
|
|
15
|
-
contextium
|
|
29
|
+
contextium cat --all -w <workspace> 2>/dev/null
|
|
16
30
|
```
|
|
17
31
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
contextium workflow "<workflow-name>" -w <workspace> --sync
|
|
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:
|
|
33
|
+
|
|
21
34
|
```
|
|
35
|
+
--- WORKFLOW SESSION CONTEXT ---
|
|
36
|
+
Workflow: <name>
|
|
37
|
+
Workspace: <name> (id: <id>)
|
|
22
38
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
39
|
+
Libraries:
|
|
40
|
+
- "<name>" (id: <id>)
|
|
41
|
+
- "<name>" (id: <id>)
|
|
42
|
+
|
|
43
|
+
Agents:
|
|
44
|
+
- "<name>" (id: <id>)
|
|
45
|
+
|
|
46
|
+
Skills:
|
|
47
|
+
- "<name>" (id: <id>)
|
|
48
|
+
--- END SESSION CONTEXT ---
|
|
49
|
+
|
|
50
|
+
Workflow loaded. What would you like to do?
|
|
26
51
|
```
|
|
27
52
|
|
|
28
|
-
If
|
|
53
|
+
If a workflow name was specified directly in the user's message, skip step 1 and load immediately.
|
|
29
54
|
If no workspace is specified, use the default from .contextiumrc or ask the user.
|
|
30
55
|
</process>
|
|
56
|
+
|
|
57
|
+
<session-rules>
|
|
58
|
+
Once the session context block has been output, these rules apply for the rest of the conversation:
|
|
59
|
+
|
|
60
|
+
- Do NOT call list_workflows, list_context_libraries, list_agents, list_skills, list_files, or any other listing tool again unless the user explicitly asks to see a list
|
|
61
|
+
- Use the IDs from the session context block directly when creating files, searching, or referencing resources
|
|
62
|
+
- Do NOT re-verify or re-check which libraries, agents, or skills exist — they are already known
|
|
63
|
+
- All tool calls and checks must be silent — never show the user raw API responses, tool call names, or intermediate results
|
|
64
|
+
- Only surface the final answer or the created/updated content to the user
|
|
65
|
+
</session-rules>
|