@cubis/foundry 0.3.72 → 0.3.73

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.
@@ -47,16 +47,17 @@ Follow this decision tree for EVERY user request:
47
47
 
48
48
  ## 3) Skill Loading Protocol
49
49
 
50
- Skills are **supporting context**, not the route layer. Always route first, then load skills if needed.
50
+ Skills are **supporting context** always route first, then load what the route recommends.
51
51
 
52
52
  1. **Never begin with `skill_search`.** Inspect the repo/task locally first.
53
- 2. Resolve the route (workflow, agent, or direct execution) before considering skills.
54
- 3. If the exact skill ID is known run `skill_validate` → then `skill_get`.
55
- 4. If the domain is still unclear AFTER route resolution use ONE narrow `skill_search`.
56
- 5. Call `skill_get` with `includeReferences: false` by default.
57
- 6. Load reference files one at a time with `skill_get_reference` only when a specific reference is needed.
58
- 7. Do not auto-prime every specialist with a skill. Load only what the task clearly needs.
59
- 8. Never pass workflow IDs or agent IDs to skill tools.
53
+ 2. Resolve the route (workflow, agent, or direct execution) before loading any skills.
54
+ 3. **After routing: if `route_resolve` returned `primarySkillHint` or `primarySkills`, load the first via `skill_validate` → `skill_get` before executing. Not optional for non-trivial tasks.**
55
+ 4. If `detectedLanguageSkill` is returned and matches the project, load it too (if not already loaded this session).
56
+ 5. Domain still unclear after routing? → ONE narrow `skill_search`. Not two.
57
+ 6. Call `skill_get` with `includeReferences: false` by default.
58
+ 7. Load reference files one at a time with `skill_get_reference` only when a specific reference is needed.
59
+ 8. Do not auto-prime every specialist. Only load what `primarySkills` recommends or the task clearly needs.
60
+ 9. Never pass workflow IDs or agent IDs to skill tools.
60
61
 
61
62
  ---
62
63
 
@@ -19,7 +19,7 @@
19
19
  - All specialist references are **postures within the current session** — Codex does not spawn isolated subagents.
20
20
  - `@specialist` means: adopt that specialist's domain, reasoning style, and scope constraints internally.
21
21
  - Prefer local file inspection over external fetches. Default to repo-grounded reasoning.
22
- - MCP tools may be available depending on sandbox configuration verify with `route_resolve` first.
22
+ - Foundry MCP tools (`skill_get`, `skill_search`, `skill_validate`, `route_resolve`) are available when the MCP server is connected. After `route_resolve`, load the returned `primarySkillHint` or `primarySkills[0]` via `skill_validate` → `skill_get` before executing non-trivial tasks.
23
23
 
24
24
  ## Platform Notes
25
25