linuxmobile/shin/memory-aware-architect
Claude Code and agent skill by linuxmobile/shin
- community
Checking that the SKILL.md file is still in the repository.
Mandatory persistent memory integration for project development. Use when working on any codebase that uses opencode-mem for context persistence. Always searches memory before planning, coding, refactoring, or debugging. Suggests adding new facts after completing significant tasks. Works with any programming language, framework, or architecture style.
Install
npx vskill@latest install linuxmobile/shin/memory-aware-architectSKILL.md
Memory-Aware Architect
Core Workflow (Mandatory)
1. Search Memory First (Required at Task Start)
Before responding to any architecture, refactoring, feature implementation, debugging, or project-related query, execute one or more semantic searches in persistent memory using the memory tool.
Craft specific, descriptive queries based on the user's task and the project context:
Key principles for effective searches:
- Include relevant technical terms from the user's request
- Search for both broad patterns and specific implementations
- When user mentions modules/components/features, include those exact terms
- Run multiple searches if the task involves different aspects (e.g., frontend + backend + database)
2. Integrate Retrieved Facts
- Use retrieved memories to inform all planning, reasoning, and code generation
- Never re-explain concepts, patterns, or decisions already stored in memory
- Trust the existing memory over assumptions—the project has its own conventions
- If critical context is missing, ask for clarification—but prioritize existing memory content
- If no relevant memories found, mention: "No prior context found in memory for [topic]"
3. Add New Knowledge (After Significant Work)
After completing important tasks (refactors, new features, architectural decisions, significant fixes), identify valuable new knowledge and suggest adding it to memory:
What makes good memory content:
- Architectural decisions and their rationale
- Established patterns and conventions
- Technology choices and configuration details
- Non-obvious implementation details
- Gotchas, edge cases, or lessons learned
- Integration patterns between components
- Performance optimizations applied
Examples across different project types:
Universal Best Practices
These guidelines apply regardless of project type, but always defer to project-specific patterns stored in memory:
Memory-First Mindset
- Always search before assuming - The project may have established conventions
- Consistency over cleverness - Follow existing patterns even if you'd do it differently
- Document decisions, not just code - Future you (or Claude) needs to understand why
What to Search For
- Project structure and organization
- Naming conventions (files, functions, variables, classes)
- Error handling and logging patterns
- Testing approaches and tools
- Code style preferences (formatting, comments, documentation)
- Dependency management and versions
- Build and deployment processes
- Third-party integrations and API patterns
What to Add to Memory
- Deviations from framework defaults
- Performance optimizations
- Security considerations
- Cross-cutting concerns (auth, logging, caching, etc.)
- Module/component responsibilities
- Data flow and state management
- Configuration and environment setup
- Team conventions and preferences
Example Usage Patterns
User: "Add user authentication to the app"
Correct Response Flow:
- Search memory: "authentication", "user management", "security patterns", "session handling"
- Check what auth approach is already established (JWT? Sessions? OAuth?)
- Apply existing security patterns from memory
- Implement following project conventions
- Suggest adding: "Implemented JWT authentication with refresh tokens; access token TTL 15min, refresh TTL 7 days; stored in httpOnly cookies"
User: "Fix the bug where the dashboard loads slowly"
Correct Response Flow:
- Search memory: "dashboard", "performance", "loading", "caching", "data fetching"
- Identify existing performance patterns or known issues from memory
- Debug using project-specific context
- If you find and fix a non-obvious issue, suggest adding: "Dashboard slow load caused by N+1 query in user stats endpoint; fixed with single JOIN query and added Redis cache (5min TTL)"
User: "Refactor the payment module to be more testable"
Correct Response Flow:
- Search memory: "payment", "testing patterns", "dependency injection", "mocking"
- Apply project's established testing and architecture patterns
- Refactor maintaining consistency with existing code structure
- Suggest adding: "Refactored PaymentService to use dependency injection; accepts payment gateway as constructor param for easier mocking in tests"
Anti-Patterns to Avoid
- ❌ Skipping the initial memory search (breaks continuity)
- ❌ Re-explaining concepts already in memory (wastes tokens)
- ❌ Ignoring retrieved patterns when generating code (creates inconsistency)
- ❌ Forgetting to suggest memory additions after significant work (loses knowledge)
- ❌ Assuming standard conventions without checking memory first (may conflict with project)
- ❌ Adding trivial or obvious information to memory (noise)
- ❌ Writing vague memory content like "implemented feature X" (not useful later)
Quick Reference
When to Search Memory:
- Start of any development task
- Before making architectural decisions
- When encountering unfamiliar parts of codebase
- Before refactoring existing code
- When debugging issues
- When adding new features or modules
When to Add to Memory:
- After implementing significant features
- When making architectural decisions
- After fixing non-trivial bugs
- When establishing new patterns or conventions
- After performance optimizations
- When integrating external services
- After learning project-specific gotchas
Default Response Flow:
Search Query Formula:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinghome/terminal/software/opencode/skills/memory-aware-architect/SKILL.md
Popularity
- 7-day trend score
- 0
Refreshed 17 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/linuxmobile/shin/memory-aware-architect)