From devflow
Intelligent workflow for storing and organizing external knowledge. Use this skill when the user asks to store, remember, capture, or preserve any information externally or mentions saving to a knowledge base.
npx claudepluginhub joshuarweaver/cascade-code-general-misc-4 --plugin codingthefuturewithai-claude-code-primitivesThis skill uses the workspace's default tool permissions.
Route content to the right destination.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Route content to the right destination.
Say exactly: "SKILL INVOKED: knowledge-management"
Before ANY ingestion operation, identify yourself:
actor_type on ALL ingest callsSTOP IMMEDIATELY and inform the user when:
DO NOT:
Principle: If a step fails, ask: will the same failure affect the next step? If yes, STOP.
Load DevFlow configuration to determine what's available.
Check for config file:
~/.claude/plugins/config/devflow/config.mdParse configuration:
rag-memory.enabled - Is RAG Memory available?docs.enabled - Is a docs backend enabled?docs.backend - Which one? (confluence, google-drive)rag-memory.routing - How to route content (decide-each-time, quick-to-rag, all-to-rag)
Store:Availability check:
| RAG Memory | Docs Backend | Skill Status |
|---|---|---|
| Enabled | Enabled | Full routing available |
| Enabled | Disabled | RAG Memory only |
| Disabled | Enabled | Docs backend only |
| Disabled | Disabled | Inform user to run /devflow-setup and STOP |
Before ANY MCP tool call in this skill, validate EVERY parameter.
For EVERY parameter on EVERY call, verify where the value came from:
| Source | Allowed? | Action |
|---|---|---|
| Value from plugin config read in Step 0 | YES | Use it |
| Value returned from a PREVIOUS call to the SAME backend's MCP server | YES | Use it |
| Value provided by the user in this conversation | YES | Use it |
| Value from a DIFFERENT backend's MCP server | NO | STOP. Backends are isolated. |
| Value that "looks right" or was inferred | NO | STOP. ASK the user. |
cloudId: Read from config cloudId OR call getAccessibleAtlassianResources. NEVER fabricate.actor_type: Self-identify (already required in Self-Identification section above).collection_name: From list_collections + user selection. NEVER guess.| Flag | Description |
|---|---|
--rag | Route to RAG Memory only |
--docs | Route to configured docs backend (Confluence or Google Drive) |
--confluence | Route to Confluence specifically (if available) |
--google | Route to Google Drive specifically (if available) |
--both | Search both, then decide |
--update | Force update of related existing document |
--quick | Force save as quick note (RAG only) |
--separate | Force creation of full document |
--rag flag?
--docs flag?
--confluence flag?
--google flag?
--both flag? → Go to Step 2 (check what's available)
No flag?
If RAG_ENABLED:
Test: mcp__rag-memory-primary__list_collections
If DOCS_BACKEND = "confluence":
Test: mcp__atlassian__getAccessibleAtlassianResources
If DOCS_BACKEND = "google-drive":
Test: mcp__google-drive__search_files with:
Route based on availability:
| RAG | Docs | Action |
|---|---|---|
| ✓ | ✓ | Ask user where to store (Step 3) |
| ✓ | ✗ | "Note: [Docs backend] unavailable. Storing to RAG Memory." → RAG MEMORY |
| ✗ | ✓ | "Note: RAG Memory unavailable. Storing to [Docs backend]." → DOCS BACKEND |
| ✗ | ✗ | "Neither backend available. Check your MCP server connections." STOP |
Ask user:
Where would you like to store this?
- RAG Memory
- [Confluence/Google Drive] (based on config)
- Search both first, then decide
- Cancel
STOP and wait. Then route based on answer.
Follow the workflow in references/rag-memory.md.
Summary:
quick-notesFollow the workflow in references/confluence.md.
Summary:
Follow the workflow in references/google-drive.md.
Summary:
.md then uploadSearch both systems, then let user decide.
search(query="[topic]")mcp__google-drive__search_files(query="[topic]")search_documents(query="[topic]", limit=5)