afc-consult
Expert consultation — backend, infra, PM, design, marketing, legal, or tech guidance
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Expert consultation — backend, infra, PM, design, marketing, legal, or tech guidance
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Code and component analysis — analyze code, trace flows, audit consistency, inspect components
Architecture analysis and design review
Full auto pipeline — run spec-to-clean cycle automatically for new features
Save session state for later resumption
Resolve spec ambiguities with clarifying questions
Pipeline artifact cleanup and codebase hygiene
| name | afc:consult |
| description | Expert consultation — backend, infra, PM, design, marketing, legal, or tech guidance |
| argument-hint | [domain?] "[question]" [brief|deep] |
| model | sonnet |
Consult a domain expert for advice tailored to your project. Each expert has persistent memory — they remember your project's decisions across sessions. Pipeline-independent: works anytime, no active pipeline required.
$ARGUMENTS — (optional) Format: [domain] "[question]" [brief|deep]
domain — one of: backend, infra, pm, design, marketing, legal, security, advisor, peer (optional, auto-detected if omitted)question — the consultation question (optional, enters exploratory mode if omitted)brief|deep — depth hint (optional, default: auto)Extract from $ARGUMENTS:
brief or deepIf $ARGUMENTS is empty → go to Step 2 (domain selection).
A. Explicit domain provided → use it directly.
B. No domain, but question provided → intent-based evaluation:
| Domain | When to route |
|---|---|
| backend | Server-side logic, data modeling, API design, authentication flows, database decisions |
| infra | Deployment, CI/CD pipelines, cloud services, scaling, reliability, monitoring |
| pm | What to build, for whom, when, how to measure success, prioritization, scope |
| design | Visual hierarchy, interaction patterns, accessibility, component design, user flow |
| marketing | SEO, content strategy, acquisition funnels, analytics tracking, growth tactics |
| legal | Regulatory obligations, license compatibility, privacy requirements |
| security | Threats, vulnerabilities, attack surfaces, threat modeling, compliance |
| advisor | Choosing between technologies, frameworks, libraries, or architectural approaches |
| peer | Think through a problem collaboratively, explore directions, weigh trade-offs |
Identify the PRIMARY expertise gap — what specialized knowledge does the user need most?
C. No domain, no question → ask user:
"Which expert would you like to consult?"
1. Backend — API design, database, authentication, server architecture
2. Infra — deployment, CI/CD, cloud, monitoring, scaling
3. PM — product strategy, prioritization, user stories, metrics
4. Design — UI/UX, accessibility, components, user flows
5. Marketing — SEO, analytics, growth, content strategy
6. Legal — GDPR, privacy, licenses, compliance, terms of service
7. Security — application security, OWASP, threat modeling, secure coding
8. Advisor — technology/library/framework selection, stack decisions
9. Peer — think together, brainstorm, explore directions as equals
peer)Do not delegate to a subagent. Run dialogue directly in the main context.
See peer-mode.md for full behavior, coaching techniques, and wrap-up protocol.
Skip Steps 3b–6 and end here.
You are being consulted via /afc:consult.
## Question
{question or "No specific question — enter exploratory diagnostic mode. Ask the user probing questions to uncover what they need help with."}
## Depth
{brief|deep|auto}
## Instructions
1. Follow your Session Start Protocol (read project profile, domain adapter, memory, pipeline state)
2. Follow the Communication Rules from expert-protocol.md
3. Provide your consultation following the Progressive Disclosure format
4. Update your MEMORY.md with any confirmed decisions or new project insights
| Domain | subagent_type |
|---|---|
| backend | afc:afc-backend-expert |
| infra | afc:afc-infra-expert |
| pm | afc:afc-pm-expert |
| design | afc:afc-design-expert |
| marketing | afc:afc-marketing-expert |
| legal | afc:afc-legal-expert |
| security | afc:afc-appsec-expert |
| advisor | afc:afc-tech-advisor |
Task("{domain} consultation", subagent_type: "afc:afc-{domain}-expert", prompt: "...")
The agent runs in foreground (never run_in_background).
Return the agent's response to the user as-is. Do not summarize or filter.
Follow-up options:
- Ask a deeper question on this topic
- Consult another expert: /afc:consult {other-domain}
- If a recommendation involves code changes: /afc:auto or /afc:implement
/afc:consult backend "Should I use JWT or session cookies for auth?"
/afc:consult "My API is slow when loading the dashboard" # auto-detect
/afc:consult backend # exploratory mode
/afc:consult infra "How should I set up CI/CD?" deep
/afc:consult peer "Should we split this into a monorepo?"
/afc:consult "Let's think through the onboarding flow together"
/afc:consult # domain selection prompt
.claude/afc/ and .claude/agent-memory/. Writing to application source code is prohibited..claude/agent-memory/afc-{domain}-expert/MEMORY.md..claude/afc/project-profile.md — auto-created on first consultation..claude/afc/discuss.md on wrap-up. See peer-mode.md.