advisor-triggers
БесплатноБез исполняемых скриптовНе проверенDetects when user requests warrant critical analysis via /advise command
от akaszubski★ 35 звёзд на GitHubОб этом скилле
Advisor Auto-Invoke Triggers
Purpose
Detect patterns in user requests that indicate a need for critical thinking analysis. Suggests running /advise when users propose significant changes without first considering trade-offs.
Detection Patterns
Pattern 1: New Dependencies
Triggers:
- "add [package/library/service]"
- "use [technology]"
- "integrate [external service]"
- "switch to [different tool]"
Examples:
- "Let's add Redis for caching"
- "Use TensorFlow for ML"
- "Integrate Stripe for payments"
- "Switch to PostgreSQL"
Why advise? New dependencies increase complexity and maintenance burden.
Pattern 2: Architecture Changes
Triggers:
- "refactor to [pattern]"
- "restructure as [architecture]"
- "migrate to [architecture]"
- "convert to [pattern]"
Examples:
- "Refactor to microservices"
- "Restructure as event-driven"
- "Migrate to serverless"
- "Convert to monorepo"
Why advise? Architectural changes have far-reaching implications.
Pattern 3: Scope Expansions
Triggers:
- "also add [feature]"
- "extend to [capability]"
- "support [new use case]"
- "make it [do more]"
Examples:
- "Also add real-time collaboration"
- "Extend to mobile platforms"
- "Support multi-tenancy"
- "Make it work offline"
Why advise? Scope creep can derail projects.
Pattern 4: Technology Replacements
Triggers:
- "[X] instead of [Y]"
- "replace [X] with [Y]"
- "swap [X] for [Y]"
Examples:
- "GraphQL instead of REST"
- "Replace Express with Fastify"
- "Swap MySQL for MongoDB"
Why advise? Tech replacements have migration costs.
Pattern 5: Scale Changes
Triggers:
- "handle [large number]"
- "scale to [big metric]"
- "support [many users]"
Examples:
- "Handle 1M requests/day"
- "Scale to 100K users"
- "Support 10K concurrent"
Why advise? Premature optimization is common.
Detection Logic
function shouldInvokeAdvisor(userRequest: string): boolean {
const triggers = [
// Dependencies
/add (redis|mongodb|postgres|graphql|webpack|docker)/i,
/use (tensorflow|pytorch|react|vue|angular)/i,
/integrate (stripe|auth0|sendgrid|aws)/i,
/switch to (typescript|rust|go|kubernetes)/i,
// Architecture
/refactor to (microservices|serverless|event-driven)/i,
/restructure as/i,
/migrate to/i,
/convert to/i,
// Scope
/also add/i,
/extend to/i,
/support (mobile|multi-tenant|real-time|offline)/i,
// Technology replacement
/instead of/i,
/replace \w+ with/i,
/swap \w+ for/i,
// Scale
/scale to/i,
/handle \d+[kmb]/i, // 1k, 1m, 1b
/support \d+k/i
];
return triggers.some(pattern => pattern.test(userRequest));
}
Response Format
When trigger detected:
⚠️ **Significant decision detected**
Your request involves [architecture change / new dependency / scope expansion].
Consider running critical analysis first:
/advise "{user's proposal}"
This will provide:
- Alignment check with PROJECT.md
- Complexity assessment
- Trade-off analysis
- Alternative approaches
- Risk identification
Takes 2-3 minutes, could save weeks.
Proceed with analysis? [Y/n]
Configuration
# .claude/config.yml
advisor_triggers:
enabled: true
# Sensitivity
sensitivity: medium # low | medium | high
# Specific triggers
triggers:
new_dependencies: true
architecture_changes: true
scope_expansions: true
technology_swaps: true
scale_changes: true
# Auto-activation (don't ask, just run)
auto_activate: false # If true, runs /advise automatically
Integration Points
Point 1: Before /plan Command
User: "Let's add Redis caching"
↓
advisor-triggers: Detected new dependency
↓
[Suggest /advise]
↓
User: Accepts suggestion
↓
/advise "Add Redis caching"
↓
User: Reviews analysis, decides
↓
/plan [chosen approach]
Point 2: Before /auto-implement
User: "/auto-implement add WebSocket support"
↓
advisor-triggers: Detected architecture change
↓
[Suggest /advise first]
↓
User: Either runs /advise or proceeds anyway
Point 3: In Orchestrator Agent
orchestrator receives feature request
↓
Check advisor-triggers
↓
IF significant decision detected
↓
Invoke advisor agent first
↓
Present analysis to user
↓
THEN proceed with planning
False Positives
Some requests trigger falsely:
False Positive:
- "Fix bug in Redis connection" ← mentions Redis but not adding it
- "Document the microservices" ← mentions architecture but not changing it
Solution: Context-aware detection:
// Only trigger if action verb present
if (containsActionVerb(request) && containsTriggerKeyword(request)) {
return true;
}
Override
Users can bypass:
# Explicit skip
/plan --skip-advisor "Add Redis caching"
# Or acknowledge in prompt
"Add Redis caching (already analyzed, proceeding)"
Установить advisor-triggers в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobFAQ
Что делает скилл advisor-triggers?
Detects when user requests warrant critical analysis via /advise command
Как установить скилл advisor-triggers?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл advisor-triggers запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic