Add Claude and OpenCode Cognitive Infrastructure with Knowledge Packs#5
Conversation
Adds two new playbooks to the Setup category: 1. Claude Cognitive Infrastructure - Deploys the complete .claude/ directory structure enabling persistent memory, modular skills, context management, and event-driven hooks for any Claude-based agent. 2. Codebase Expert Knowledge Pack - Installs RAG-powered code understanding with semantic search across the codebase. Also includes shared Knowledge Pack utilities (_Core) for embeddings, vector storage, and RAG retrieval hooks. Inspired by Daniel Miessler's Personal AI Infrastructure project: https://github.com/danielmiessler/Personal_AI_Infrastructure 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Review Feedback@stephanchenette - Great contribution! The playbooks are well-structured and the documentation is thorough. A few suggestions to consider before merging: Key Items
Minor Suggestions
OverallThis is solid work that adds real value. The main gap is clarifying what's automated vs. what requires user configuration. Happy to approve once the documentation addresses the embedding provider requirement and skill/hook activation mechanisms. |
- Clarify embedding provider requirement in _Core/README.md - Add prominent warnings in embeddings.ts that it's a placeholder - Document hook execution mechanisms (manual, MCP, wrapper script) - Explain skill activation system (triggers, context_budget, manual vs future auto) - Add gitignore guidance for .claude/context/memory/ files - Add version migration documentation - Add JSON schema for settings.json validation - Update 4_IMPLEMENT.md with embedding provider setup instructions - Add troubleshooting section for common issues 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Move non-markdown files to assets/ subfolders as documented
- Claude-Cognitive-Infrastructure: Move settings.schema.json to assets/
- Codebase-Expert: Move lib/*.ts, hooks/*.ts, templates/ to assets/
- Remove _Core shared folder (assets bundled per playbook now)
- Update playbook docs to use {{AUTORUN_FOLDER}}/assets/ paths
- Document assets in README files
- Merge latest main (Mobile-Polish, markdownlint config)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Expanded 4_IMPLEMENT.md from ~280 lines to ~970 lines - Added Part 2: Hook System with 5 TypeScript hooks: - security-validator.ts (10-tier attack pattern blocking) - initialize-session.ts (SessionStart handler) - load-core-context.ts (CORE skill loader) - event-logger.ts (PostToolUse logger) - session-summary.ts (Stop handler) - Added Part 3: Memory System with three-tier architecture: - CAPTURE (hot) - Work/ - SYNTHESIS (warm) - Learning/ - APPLICATION (cold) - sessions/, etc. - Added Part 4: Skills System with: - CORE skill with USE WHEN activation - SYSTEM/ documentation directory - USER/ personal configuration - CreateSkill skill for generating new skills - Updated README with comprehensive feature documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Changes: - Move Knowledge-Packs inside Claude-Cognitive-Infrastructure (Knowledge packs are Claude-specific, not independent) - Add OpenCode-Cognitive-Infrastructure playbook with: - Plugin system (TypeScript plugins vs shell hooks) - Memory system (three-tier architecture) - Skills system (lowercase naming convention) - Full documentation - Add codebase-expert knowledge pack for OpenCode (adapted from Claude's Codebase-Expert pack) Structure: - Setup/Claude-Cognitive-Infrastructure/ - Knowledge-Packs/Codebase-Expert/ - Setup/OpenCode-Cognitive-Infrastructure/ - Knowledge-Packs/codebase-expert/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Summary
This PR adds comprehensive cognitive infrastructure setup playbooks for both Claude Code and OpenCode AI coding assistants, along with knowledge packs for extending agent capabilities.
What's Included
Claude Cognitive Infrastructure (
Setup/Claude-Cognitive-Infrastructure/)Codebase-Expertfor RAG-powered code understandingOpenCode Cognitive Infrastructure (
Setup/OpenCode-Cognitive-Infrastructure/)codebase-expertfor RAG-powered code understandingStructure
Key Features
.claude/.opencode/CLAUDE.mdAGENTS.mdTest plan
🤖 Generated with Claude Code