Browse Source

feat: add add-context command to registry and all profiles

- Register add-context command in registry.json
- Add command:add-context to all 5 profiles (essential, developer, business, full, advanced)
- Update add-context.md to mention external-context files in .tmp/ directory
- Fix command dependencies to use context IDs instead of full paths
- All registry paths and dependencies validated
darrenhinde 6 months ago
parent
commit
bf38ca5571
2 changed files with 27 additions and 0 deletions
  1. 2 0
      .opencode/command/add-context.md
  2. 25 0
      registry.json

+ 2 - 0
.opencode/command/add-context.md

@@ -76,6 +76,8 @@ Help users add project patterns using Project Intelligence standard. **Easiest w
 
 **Standards**: @project_intelligence + @mvi_compliance + @frontmatter_required + @codebase_refs
 
+**Note**: External context files are stored in `.tmp/` directory (e.g., `.tmp/external-context.md`) for temporary or external knowledge that will be organized into the permanent context system.
+
 ---
 
 ## Usage

+ 25 - 0
registry.json

@@ -453,6 +453,26 @@
         ],
         "category": "essential"
       },
+      {
+        "id": "add-context",
+        "name": "Add Context",
+        "type": "command",
+        "path": ".opencode/command/add-context.md",
+        "description": "Interactive wizard to add project patterns using Project Intelligence standard",
+        "tags": [
+          "context",
+          "onboarding",
+          "project-intelligence",
+          "wizard"
+        ],
+        "dependencies": [
+          "subagent:context-organizer",
+          "context:mvi",
+          "context:frontmatter",
+          "context:project-intelligence"
+        ],
+        "category": "essential"
+      },
       {
         "id": "clean",
         "name": "Clean Project",
@@ -2657,6 +2677,7 @@
         "subagent:documentation",
         "skill:task-management",
         "command:context",
+        "command:add-context",
         "command:clean",
         "tool:env",
         "context:essential-patterns",
@@ -2696,6 +2717,7 @@
         "command:commit",
         "command:test",
         "command:context",
+        "command:add-context",
         "command:clean",
         "command:optimize",
         "command:validate-repo",
@@ -2735,6 +2757,7 @@
         "subagent:image-specialist",
         "skill:task-management",
         "command:context",
+        "command:add-context",
         "command:clean",
         "command:prompt-enhancer",
         "tool:env",
@@ -2775,6 +2798,7 @@
         "command:test",
         "command:commit",
         "command:context",
+        "command:add-context",
         "command:clean",
         "command:optimize",
         "command:prompt-enhancer",
@@ -2836,6 +2860,7 @@
         "command:test",
         "command:commit",
         "command:context",
+        "command:add-context",
         "command:clean",
         "command:optimize",
         "command:prompt-enhancer",