@minhpnq1807/contextos 0.6.8 → 0.6.9

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.9
4
+
5
+ - **Skill suggestion formatting:** ContextOS now renders automatic skill suggestions as plain skill names instead of `$skill-name`, preventing Codex from treating suggested skills as native skill activation requests. Explicit user-requested skills still preserve `$skill-name` syntax.
6
+
3
7
  ## 0.6.8
4
8
 
5
9
  - **Fallback context recovery:** Prompt-hook direct fallback now keeps ContextOS useful when `ctx-mcp` is unavailable by using indexed file text matches and lightweight evidence-based skill scoring instead of returning only workflows or an empty context.
package/README.md CHANGED
@@ -716,7 +716,7 @@ If hooks fall back because `ctx-mcp` is unavailable or not hot yet, ContextOS st
716
716
 
717
717
  Use `ctx --config` to choose which prompt sections ContextOS injects and how many suggestions each section may show. Interactive `ctx setup` includes the same section picker and limit prompts, while `ctx setup --yes` keeps the current saved config for automation. The panel supports multiple selection with `Space` and persists the global choice in `~/.ctx/contextos/output-config.json`. Defaults are five suggested files, five skills, and five workflows; caps are 20 files, 10 skills, and 5 workflows. Disabling rules hides both critical and additional relevant rule sections; compliance metadata remains available for reports.
718
718
 
719
- Injected prompt sections are intentionally compact: rules show only detected rule text, files show a comma-separated inline list of basenames without paths, skills show unique `$skill-name` activations as a comma-separated inline list without descriptions, and workflows show names with their agent chain. Stop hooks persist reports silently; run `ctx report` or `ctx evidence` when you want the detailed compliance output.
719
+ Injected prompt sections are intentionally compact: rules show only detected rule text, files show a comma-separated inline list of basenames without paths, skills show unique plain skill names as a comma-separated inline list without descriptions, and workflows show names with their agent chain. ContextOS only keeps `$skill-name` syntax for skills the user explicitly requested, so automatic suggestions do not collide with native agent skill activation. Stop hooks persist reports silently; run `ctx report` or `ctx evidence` when you want the detailed compliance output.
720
720
 
721
721
  Codex may flatten newlines in its `UserPromptSubmit hook (completed)` preview. The injected `additionalContext` payload remains multiline; this is a Codex preview display limitation.
722
722
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minhpnq1807/contextos",
3
- "version": "0.6.8",
3
+ "version": "0.6.9",
4
4
  "description": "Task-aware AGENTS.md context injection and compliance reporting for Codex, Claude Code, and Antigravity.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctx",
3
- "version": "0.6.8",
3
+ "version": "0.6.9",
4
4
  "description": "Inject task-relevant AGENTS.md rules into Codex through plugin hooks.",
5
5
  "author": {
6
6
  "name": "ContextOS"
@@ -25,7 +25,7 @@ export function scheduleContext({
25
25
  sections.push(commaSection("Suggested files to check", formatFiles(relevantFiles)));
26
26
  }
27
27
  if (outputConfig.sections.skills && suggestedSkills.length) {
28
- sections.push(inlineSection("Skills to activate for this task", suggestedSkills.map(formatSkill)));
28
+ sections.push(inlineSection("Suggested skills for this task", suggestedSkills.map(formatSkill)));
29
29
  }
30
30
  if (outputConfig.sections.workflows && suggestedWorkflows.length) {
31
31
  sections.push(section("Suggested workflow for this task", suggestedWorkflows.map(formatWorkflow)));
@@ -98,7 +98,9 @@ function formatFile(file, basenameCounts) {
98
98
 
99
99
  function formatSkill(skill) {
100
100
  const name = String(skill.name || "").trim();
101
- return name.startsWith("$") ? name : `$${name}`;
101
+ if (!name) return "";
102
+ if (name.startsWith("$")) return name;
103
+ return skill.explicit ? `$${name}` : name;
102
104
  }
103
105
 
104
106
  function formatWorkflow(workflow) {
@@ -1,15 +0,0 @@
1
- ---
2
- name: ContextOS Community
3
- description: Maintain Community Skill Packs, certification docs, launch demos, and distribution-oriented ContextOS assets.
4
- ---
5
-
6
- # ContextOS Community
7
-
8
- Use this skill for Community Skill Packs, ContextOS Ready certification, launch demos, roadmap docs, and contributor-facing assets.
9
-
10
- ## Workflow
11
-
12
- 1. Keep community assets small and PR-friendly.
13
- 2. Prefer docs, examples, and tests over hosted infrastructure.
14
- 3. Ensure every skill pack has triggers, evidence, negative triggers, and workflow.
15
- 4. Validate docs and package inclusion before committing.
@@ -1,20 +0,0 @@
1
- id: contextos-community
2
- name: ContextOS Community
3
- description: Maintain Community Skill Packs, certification docs, launch demos, and distribution assets.
4
- positive_triggers:
5
- prompts: [community skill packs, contextos ready, certified, badge, roadmap, launch demo, contributor]
6
- files: [community-skills/README.md, docs/roadmap.md, docs/launch-demos.md, README.md]
7
- dependencies: [vitest]
8
- evidence:
9
- files: [community-skills/README.md, docs/roadmap.md, README.md]
10
- dependencies: [vitest]
11
- negative_triggers:
12
- prompts: [runtime scorer, mcp transport, embedding model]
13
- workflow:
14
- - Keep community assets small and PR-friendly.
15
- - Prefer docs, examples, and tests over hosted infrastructure.
16
- - Ensure every skill pack has triggers, evidence, negative triggers, and workflow.
17
- - Validate docs and package inclusion before committing.
18
- related_skills:
19
- - community-management
20
- - technical-writing
@@ -1,15 +0,0 @@
1
- ---
2
- name: ContextOS Release
3
- description: Prepare ContextOS npm package releases, changelog updates, plugin validation, tags, and GitHub release safety checks.
4
- ---
5
-
6
- # ContextOS Release
7
-
8
- Use this skill when bumping versions, preparing changelog entries, validating package contents, or publishing ContextOS.
9
-
10
- ## Workflow
11
-
12
- 1. Update README and CHANGELOG before tagging.
13
- 2. Verify package and plugin versions stay aligned.
14
- 3. Run build, plugin validation, MCP smoke, tests, and `npm pack --dry-run`.
15
- 4. Commit, tag, push, and verify the GitHub release/npm publish path.
@@ -1,20 +0,0 @@
1
- id: contextos-release
2
- name: ContextOS Release
3
- description: Prepare ContextOS npm releases, changelog updates, tags, and package validation.
4
- positive_triggers:
5
- prompts: [release, bump version, changelog, npm publish, tag, package, validate plugin]
6
- files: [package.json, plugins/ctx/.codex-plugin/plugin.json, CHANGELOG.md, README.md]
7
- dependencies: [vitest]
8
- evidence:
9
- files: [package.json, plugins/ctx/.codex-plugin/plugin.json, CHANGELOG.md]
10
- dependencies: [vitest]
11
- negative_triggers:
12
- prompts: [application feature, dashboard UI, backend API]
13
- workflow:
14
- - Update README and CHANGELOG before tagging.
15
- - Verify package and plugin versions stay aligned.
16
- - Run build, plugin validation, MCP smoke, tests, and npm pack dry-run.
17
- - Commit, tag, push, and verify release automation.
18
- related_skills:
19
- - npm-package-release
20
- - github-actions-ci-cd
@@ -1,15 +0,0 @@
1
- ---
2
- name: ContextOS Routing
3
- description: Work on ContextOS rule, file, skill, workflow, and evidence routing without adding broad runtime complexity.
4
- ---
5
-
6
- # ContextOS Routing
7
-
8
- Use this skill when changing ContextOS routing behavior, prompt hook output, scoring, evidence, or MCP scorer paths.
9
-
10
- ## Workflow
11
-
12
- 1. Inspect the existing routing module before changing behavior.
13
- 2. Keep prompt-hook hot paths bounded and fail-open.
14
- 3. Add focused tests for ranking, output, or telemetry behavior.
15
- 4. Run `npm test`, `npm run build`, and `npm run validate:plugin` when the change affects runtime.
@@ -1,20 +0,0 @@
1
- id: contextos-routing
2
- name: ContextOS Routing
3
- description: Work on ContextOS rule, file, skill, workflow, and evidence routing.
4
- positive_triggers:
5
- prompts: [contextos routing, prompt hook, skill router, workflow router, evidence, scoring, ctx-mcp]
6
- files: [plugins/ctx/lib/score-context.js, plugins/ctx/lib/skill-discoverer.js, plugins/ctx/lib/workflow-discoverer.js, plugins/ctx/lib/prompt-hook.js]
7
- dependencies: [@modelcontextprotocol/sdk]
8
- evidence:
9
- files: [plugins/ctx/lib/score-context.js, plugins/ctx/lib/skill-discoverer.js, plugins/ctx/mcp/server.js]
10
- dependencies: [@modelcontextprotocol/sdk, @xenova/transformers]
11
- negative_triggers:
12
- prompts: [dashboard, cloud service, hosted marketplace]
13
- workflow:
14
- - Inspect the existing routing module before changing behavior.
15
- - Keep prompt-hook hot paths bounded and fail-open.
16
- - Add focused tests for ranking, output, or telemetry behavior.
17
- - Run npm test plus build and plugin validation for runtime changes.
18
- related_skills:
19
- - mcp-tool-developer
20
- - agent-memory-mcp