Skip to content
Back to skills

Before Task

ASecurity

Comprehensive discovery before starting any spec or major task. Searches Graphiti, recommends vibe/MCPs, surfaces patterns.

  • 18 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 1, 2026
code-qualitytypescriptgobashnodegitdocumentation

Works with

  • mcp

Security analysis

A100/100

Scanned June 1, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill before-task --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Before Task?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Before Task
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-before-task/badge)](https://www.skillsdirectory.com/skills/majiayu000-before-task)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: before-task
description: Comprehensive discovery before starting any spec or major task. Searches Graphiti, recommends vibe/MCPs, surfaces patterns.
---

# @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)

```typescript
// 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

```typescript
suggest_mcps({
  task: "[user's task description]",
  include_examples: false  // Brief mode
});
```

---

## Output Format

```markdown
## 🎯 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
```bash
# Discovery phase
@before-task Research [feature idea]

# Review results
# If similar spec exists β†’ Adapt
# If new β†’ Proceed

/speckit.specify "[feature]"
```

### With Standard Tasks
```bash
# 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.


Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.