Agent skill
before-task
Comprehensive discovery before starting any spec or major task. Searches Graphiti, recommends vibe/MCPs, surfaces patterns.
Install this agent skill to your Project
npx add-skill https://github.com/nirukk52/ScreenGraph/tree/main/.claude-skills/before-task_skill
SKILL.md
@before-task - Comprehensive Discovery
Use BEFORE:
/speckit.specify(creating new spec)- Starting any major feature/bug fix
- Beginning new work streams
DO NOT use during implementation (too heavy, use @during-task instead)
What It Does
1. Search Graphiti for similar past work (group_id="screengraph")
- Past specs in this domain
- Implementation patterns
- Known gotchas and workarounds
2. Get MCP orchestrator recommendations
- Which vibe to use
- Top 3 MCPs prioritized
- Relevant skills available
3. Surface actionable context
- Files to review
- Architecture patterns
- Past decisions
- Starting points
Token cost: ~2500 tokens
Frequency: Once per spec/major-task
ROI: Prevents wrong direction = saves hours
Execution
Graphiti Searches (Parallel)
// Search 1: Past specs in domain
search_memory_nodes({
query: "spec [domain] [feature-type]",
group_ids: ["screengraph"],
max_nodes: 10
});
// Search 2: Implementation patterns
search_memory_nodes({
query: "[domain] implementation patterns best practices",
group_ids: ["screengraph"],
max_nodes: 10
});
// Search 3: Known gotchas
search_memory_facts({
query: "[technology] gotchas workarounds issues",
group_ids: ["screengraph"],
max_facts: 10
});
MCP Recommendations
suggest_mcps({
task: "[user's task description]",
include_examples: false // Brief mode
});
Output Format
## 🎯 Before-Task Context: [Task]
### 📚 Similar Past Work
- [Spec/solution 1 with key learnings]
- [Spec/solution 2 with gotchas]
- [Pattern 3 from past implementation]
### 🎭 Recommended Setup
**Vibe**: [vibe_name] (skills: [skill1, skill2])
**MCPs**:
1. [MCP 1] - [purpose]
2. [MCP 2] - [purpose]
3. [MCP 3] - [purpose]
### 📁 Files to Review
- [file 1] - [why relevant]
- [file 2] - [why relevant]
### ⚠️ Known Gotchas
- [Gotcha 1 with workaround]
- [Gotcha 2 with workaround]
### 🚀 Suggested Approach
1. [Step 1 based on past patterns]
2. [Step 2]
3. [Step 3]
### 📖 Resources (if needed)
- [Relevant documentation or Context7 libraries]
Integration
With Spec-Kit
# Discovery phase
@before-task Research [feature idea]
# Review results
# If similar spec exists → Adapt
# If new → Proceed
/speckit.specify "[feature]"
With Standard Tasks
# Before major work
@before-task Fix [complex bug]
# Review context
# Create branch
git checkout -b bug-[description]
# Implement using recommended vibe + MCPs
When NOT to Use
❌ During implementation of subtasks (use @during-task)
❌ For trivial tasks (use @during-task)
❌ Multiple times in same session (context doesn't change that fast)
Purpose: Load comprehensive context ONCE at the start. Everything else builds from this foundation.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
e2e-testing
Playwright end-to-end testing for ScreenGraph using .env-driven configuration. Use when validating full user flows, running regression suites, or inspecting UI behavior with Cursor browser tools.
slack-gif-creator
Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like "make me a GIF for Slack of X doing Y".
skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
after-task
Mandatory knowledge capture after completing work. Documents solution in Graphiti and tracks effectiveness for system improvement.
canvas-design
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.
internal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).
Didn't find tool you were looking for?