serena-code-architecture
Architectural analysis workflow using Serena symbols and Forgetful memory. Use when analyzing project structure, documenting architecture, creating component entities, or building knowledge graphs from code.
npx skills add majiayu000/claude-skill-registry --skill serena-code-architecture --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Architectural Analysis with Serena + Forgetful This skill guides systematic architectural analysis using Serena's symbol-level understanding, with optional persistence to Forgetful's knowledge graph. ## When to Use This Skill - Analyzing a new codebase before implementing changes - Documenting existing architecture for a project - Creating component entities and relationships in Forgetful - Understanding dependencies and call hierarchies - Building a knowledge graph from code structure ## Analysis Workflow ### Phase 1: Project Structure Discovery Understand the high-level layout: ```python # Get directory structure mcp__plugin_serena_serena__list_dir({ "relative_path": ".", "recursive": false }) # Identify key directories (src/, app/, lib/, etc.) mcp__plugin_serena_serena__list_dir({ "relative_path": "src", "recursive": true }) ``` **Goal**: Identify entry points, main modules, and organizational patterns. ### Phase 2: Entry Point Analysis Find the application entry points: ```python # Look for main/app files mcp__plugin_serena_serena__search_for_pattern({ "substring_pattern": "if __name__.*==.*__main__|def main\\(|app\\s*=\\s*FastAPI|createApp", "restrict_search_to_code_files":
- When to Use This Skill
- Analysis Workflow
- Phase 1: Project Structure Discovery
- Phase 2: Entry Point Analysis
- Phase 3: Core Component Mapping
- Phase 4: Dependency Tracing
- Phase 5: Create Architectural Memories (Optional)
- Phase 6: Entity Graph Creation (Optional)
- Relationship Types
- Entity Types for Architecture
- Example: FastAPI Project Analysis
- Analysis Checklist
- Tips
What does the serena-code-architecture skill do?
Architectural analysis workflow using Serena symbols and Forgetful memory. Use when analyzing project structure, documenting architecture, creating component entities, or building knowledge graphs from code.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill serena-code-architecture --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
