/laravel-api-tool-kit:organize-knowledgefrom laravel-api-tool-kit
Consolidates scattered investigation documents, notes, and findings into the correct knowledge files, preventing knowledge sprawl and ensuring one file per feature.
Claude never picks this command on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /laravel-api-tool-kit:organize-knowledge still runs it.
Consolidates scattered investigation docs, notes, and findings into the correct knowledge files. Prevents knowledge sprawl and ensures ONE file per feature.
Trigger phrases: "organize knowledge", "consolidate docs", "clean up knowledge", /organize-knowledge
Over time, investigations produce scattered files:
INVESTIGATION_ORDER_BUG.mdFIX_WALLET_ISSUE.mdNOTES_ON_CACHE_PROBLEM.mdThis workflow consolidates everything into the correct knowledge/[FEATURE].md file — one file per feature, not one file per ticket.
Search for investigation artifacts that should be consolidated:
*_INVESTIGATION.md
INVESTIGATION_*.md
*_FIX.md
*_NOTES.md
*_DEBUG.md
*_FINDINGS.md
Also check:
knowledge/ for files that overlap in topic.claude/knowledge/, .agent/knowledge/, or knowledge/ for orphaned docsFor each scattered doc, determine which feature it belongs to:
| Doc | Feature Area | Target File |
|---|---|---|
INVESTIGATION_ORDER_BUG.md | Orders | knowledge/orders.md |
FIX_WALLET_ISSUE.md | Wallet | knowledge/wallet.md |
CACHE_NOTES.md | General | rules/anti-patterns.md or knowledge/caching.md |
Rules:
knowledge/_TEMPLATE.mdrules/*.md fileFrom each scattered doc, extract:
| Finding Type | Goes Into |
|---|---|
| Root cause of a bug | Knowledge file → "Issues Found & Fixed" |
| Diagnostic query that was useful | Knowledge file → "Diagnostic Queries" |
| Lesson / pattern discovered | Knowledge file → "Key Lessons" |
| DB column type gotcha | Knowledge file → "DB Gotchas" |
| General coding rule | rules/code-quality.md or closest rule file |
| Anti-pattern with wrong/correct | rules/anti-patterns.md |
Convert narrative to directive:
For each target knowledge file:
For new knowledge files:
knowledge/_TEMPLATE.md → knowledge/[feature].mdAfter merging:
knowledge/_archived/ directory firstConsolidated 4 scattered docs into knowledge files:
knowledge/orders.md (created):
→ Merged INVESTIGATION_ORDER_BUG.md (root cause + 2 queries)
→ Merged ORDER_NOTES.md (3 lessons)
knowledge/wallet.md (updated):
→ Merged FIX_WALLET_ISSUE.md (1 issue + 1 gotcha)
rules/anti-patterns.md (updated):
→ Added: NEVER skip currency_id in wallet queries
Deleted: INVESTIGATION_ORDER_BUG.md, ORDER_NOTES.md, FIX_WALLET_ISSUE.md
❌ Multiple knowledge files for the same feature (orders_investigation.md AND orders_bugs.md)
❌ Keeping session-specific IDs in consolidated docs
❌ Narrative prose ("On Tuesday we found...") — use directives
❌ Creating a knowledge file when a rules/*.md file is the right home
❌ Leaving scattered docs after consolidating (creates confusion about which is authoritative)
✅ ONE file per feature area
✅ Directive format: "When X → check Y"
✅ Generic placeholders: ORDER_ID, USER_ID
✅ Delete originals after merging
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
Generated from the plugin's indexed repository (ahmedesa/laravel-api-tool-kit) — no native marketplace selected
npx claudepluginhub p/ahmedesa-laravel-api-tool-kit9 commands in this plugin
/add-filterWorkflow: Add Filtering to an Existing ModelUse this when an existing model needs filtering, sorting, or search added to its list endpoint./code-reviewWorkflow: Code ReviewA defense-oriented multi-phase code review. Validates feature completeness against acceptance criteria, catches real bugs (not just style), and separates introduced issues from pre-existing debt./create-workflowWorkflow: Create a New WorkflowUse this when you discover a repeatable process during a session — an investigation type, a setup procedure, a debugging pattern — that should be captured as a reusable workflow./curl-testWorkflow: Test an API Endpoint with CurlUse during investigation or feature verification to test an endpoint directly and cross-reference its response against the database./investigateWorkflow: Investigate & DebugStructured debugging workflow for any issue — wrong response, missing data, queue failures, auth problems, performance issues. Works for any Laravel API project./new-endpointWorkflow: Add a New CRUD EndpointFollow these steps in order. Do not skip steps or reorder them.Other plugins' commands for the same job