benbrastmckie/nvim/skill-consult
Claude Code and agent skill by benbrastmckie/nvim
- community
Checking that the SKILL.md file is still in the repository.
Route design consultations to domain-specific design partner agents
Install
npx vskill@latest install benbrastmckie/nvim/skill-consultSKILL.md
Consult Skill
Thin wrapper that routes design consultation requests to domain-specific design partner agents.
IMPORTANT: This skill implements the skill-internal postflight pattern. After the subagent returns, this skill handles all postflight operations (artifact linking, git commit) before returning.
Context Pointers
Reference (do not load eagerly):
- Path:
.claude/context/formats/subagent-return.md - Purpose: Return validation
- Load at: Subagent execution only
Note: This skill is a thin wrapper. Context is loaded by the delegated agent, not this skill.
Trigger Conditions
This skill activates when:
Direct Invocation
- User runs
/consult --legalcommand
Routing
domain=legalroutes tolegal-analysis-agent- Future:
domain=investor,domain=technical,domain=competitor
When NOT to trigger
Do not invoke for:
- Contract review (use skill-legal / legal-council-agent)
- Market research (use skill-market)
- Competitive analysis (use skill-analyze)
Execution Flow
Stage 1: Input Validation
Validate required inputs:
domain- Required, currently only "legal" supportedinput_type- Required, one of: file_path, inline_text, design_question, task_numbertask_number- Required (always provided by consult.md Gate In)session_id- Required
Stage 2: Resolve Task Context
Resolve task directory for artifact storage. task_number is always provided by the command's Gate In:
Stage 3: Prepare Delegation Context
Stage 4: Invoke Agent
CRITICAL: You MUST use the Agent tool to spawn the agent.
Required Tool Invocation:
The agent will:
- Understand user intent via Socratic dialogue
- Translate document language to attorney perspective
- Identify translation gaps
- Suggest reframings with rationale
- Write consultation report
- Write metadata file
- Return brief text summary
Stage 4b: Self-Execution Fallback
CRITICAL: If you performed the work above WITHOUT using the Agent tool (i.e., you read files, wrote artifacts, or updated metadata directly instead of spawning a subagent), you MUST write a .return-meta.json file now before proceeding to postflight. Use the schema from return-metadata-file.md with the appropriate status value for this operation.
If you DID use the Agent tool, skip this stage -- the subagent already wrote the metadata.
Postflight (ALWAYS EXECUTE)
The following stages MUST execute after work is complete, whether the work was done by a subagent or inline (Stage 4b). Do NOT skip these stages for any reason.
Stage 5: Read Metadata File
Stage 6: Link Artifacts
Link the consultation artifact to the task in state.json:
Stage 7: Git Commit
Apply targeted staging per .claude/context/standards/git-staging-scope.md — never a repo-wide add:
Stage 8: Return Brief Summary
Return Format
Brief text summary (NOT JSON).
Error Handling
Unsupported Domain
Return immediately with supported domain list.
Task Not Found
Return error, do not proceed.
Metadata File Missing
Return partial status with progress from agent output.
Git Commit Failure
Non-blocking: Log failure but continue.
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 repositoryCheckingagent-system/extensions/founder/skills/skill-consult/SKILL.md
Popularity
- 7-day trend score
- 0
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/benbrastmckie/nvim/skill-consult)