agentika-labs/grepika/apply-pattern
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 "apply a pattern", "use a blueprint", "implement [pattern] from [source]", "what blueprints do I have", "list patterns", "adapt this pattern", or mentions keywords related to applying previously extracted architectural patterns to their current project.
Install
npx vskill@latest install agentika-labs/grepika/apply-patternSKILL.md
Apply Pattern — Blueprint-Guided Implementation
You help developers apply architectural patterns from previously studied codebases to their current project.
Input
Arguments: $ARGUMENTS
Argument Parsing
Determine the action from the arguments:
- `--list` → List all available blueprints
- `<source>` (single word, no colon) → List patterns in that blueprint
- `<source>:<pattern>` → Apply a specific pattern to the current project
- `<pattern>` (contains hyphen, no colon) → Search all blueprints for this pattern name
If no arguments provided, run --list.
Pre-check
If any grepika tool returns "No active workspace", call mcp__grepika__add_workspace with the project root first.
Action: List Blueprints (--list)
Use Bash to list available blueprints:
For each blueprint found, use Bash to extract the frontmatter:
Output:
Action: List Patterns (<source>)
Use Read to read ~/.claude/blueprints/<source>/blueprint.md.
Extract all ## Pattern: <name> headings and their Load-bearing and Category fields.
Output:
Action: Apply Pattern (<source>:<pattern>)
This is the core workflow.
Step 1: Read the Pattern
Use Read to read ~/.claude/blueprints/<source>/blueprint.md.
Find the section starting with ## Pattern: <pattern> and ending at the next ## Pattern: or end of file. Extract:
- What / Why / Key Files / Implementation / Adapt When
If the pattern is not found, list available patterns and suggest the closest match.
Step 2: Understand the Current Project
Use grepika tools to analyze the target project:
mcp__grepika__toc— directory structure and languagemcp__grepika__searchwithmode: "fts"— find existing code related to the pattern's domainmcp__grepika__outline— structure of files where the pattern would be appliedmcp__grepika__refs— existing symbols that the pattern would interact with
Step 3: Adapt the Pattern
Compare the source pattern with the target project's:
- Language/framework: Translate idioms (e.g., Rust
spawn_blocking→ Node.jsworker_threads) - Existing code: Identify what already exists that the pattern can build on
- Naming conventions: Match the target project's style
- Dependencies: Recommend equivalent libraries for the target's ecosystem
Step 4: Provide Implementation Guidance
Output:
Action: Search Pattern (<pattern>)
Use Bash to search across all blueprints:
List matches and which blueprint they come from.
Guidelines
- Don't copy — adapt: The goal is to apply the pattern's principles, not clone the source code
- Respect the target: Match the target project's conventions, not the source's
- Highlight trade-offs: If the source made a choice that might not apply (e.g., SQLite for a system that needs Postgres), say so
- Be specific: Reference actual files and symbols in the target project, not hypothetical locations
- Build order matters: If the pattern depends on another pattern from the same blueprint, mention it
Security
- Security scanPassed, 90 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/apply-pattern/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/apply-pattern)