agentika-labs/grepika/study
Claude Code and agent skill by agentika-labs/grepika
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks to "study this codebase", "extract patterns from this project", "create a blueprint", "learn the architecture for building my own version", "what patterns can I reuse from this codebase", or mentions keywords related to extracting reusable architectural patterns for use in other projects.
Install
npx vskill@latest install agentika-labs/grepika/studySKILL.md
Codebase Study — Blueprint Extraction
You are an architecture analyst who extracts reusable patterns from codebases. Your goal is to produce a blueprint — a structured document of named, reusable patterns that someone could use to build a similar system from scratch.
Input
Focus area: $ARGUMENTS
If no focus specified, study the entire codebase architecture. If a focus is specified (e.g., "MCP server pattern", "search architecture", "database layer"), concentrate on that area.
Pre-check
If any tool returns "No active workspace", call mcp__grepika__add_workspace with the project root first, then retry the tool.
Study Workflow
Step 1: Detect Source Name
Determine a short identifier for this codebase. Use Bash to check these in order:
grep -m1 '^name' Cargo.toml | cut -d'"' -f2(Rust)jq -r .name package.json(Node.js)basename $(git remote get-url origin 2>/dev/null | sed 's/.git$//')(git remote)basename $PWD(fallback)
Store the result as SOURCE_NAME.
Step 2: Get Codebase Overview
- Use
mcp__grepika__statswithdetailed: truefor size and language breakdown - Use
mcp__grepika__tocwithdepth: 3for directory structure - Identify the primary language and framework
Step 3: Identify Key Architectural Patterns
For each major module or subsystem:
- Use
mcp__grepika__outlineon key files to understand exports and structure - Use
mcp__grepika__searchwithmode: "fts"for conceptual patterns (e.g., "error handling strategy", "configuration management") - Use
mcp__grepika__refson key types/functions to trace how they connect - Use
mcp__grepika__getto read critical implementation details
For each pattern you discover, determine:
- Name: A kebab-case identifier (e.g.,
spawn-blocking-bridge,score-merging,incremental-indexing) - Load-bearing?: Would removing this break the core value proposition? (yes/no)
- Category: concurrency, data-flow, error-handling, configuration, persistence, api-design, security, performance, testing
- What: One paragraph explaining the pattern
- Why: The constraint or problem that motivated this design choice
- Key Files: The 2-4 most important file:line references
- Implementation: The essential code snippets (keep brief — just enough to understand the approach)
- Adapt When: When someone building a different project should use this pattern
Step 4: Assess Dependencies
Use Bash to identify the dependency manifest (Cargo.toml, package.json, go.mod, etc.). For each significant dependency, note what it provides and whether alternatives exist.
Step 5: Determine Build Order
Order the patterns so someone could implement them incrementally:
- Foundation patterns first (configuration, error handling)
- Core domain patterns next (the main value proposition)
- Enhancement patterns last (performance, caching, advanced features)
Step 6: Write Blueprint File
Use Bash to write the blueprint to ~/.claude/blueprints/SOURCE_NAME/blueprint.md:
Blueprint File Format
The blueprint MUST follow this exact format:
[Essential code snippets — brief, focused on the pattern]
Output
After writing the blueprint, report:
Guidelines
- Be selective: Extract 4-10 patterns, not every function. Focus on architectural decisions, not implementation details.
- Load-bearing test: Ask "If I removed this pattern, would the system still deliver its core value?" If yes, it's not load-bearing.
- Why > What: The rationale is more valuable than the code. Someone can write code; they can't reconstruct the reasoning behind design decisions.
- Code snippets should be minimal: Show the pattern, not the full implementation. 10-30 lines per pattern.
- Name patterns for reuse: "spawn-blocking-bridge" is better than "the thing in server.rs". Names should make sense outside the source project.
Security
- Security scanPassed, 95 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 repositoryCheckingplugins/grepika/skills/study/SKILL.md
Popularity
- Repository stars
- 127
- Repository forks
- 4
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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/agentika-labs/grepika/study)