Agent skill
conditional-domain-specific-template
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/conditional-domain-specific-template
SKILL.md
Conditional Domain-Specific Template
Purpose
This template demonstrates context-aware workflows that adapt based on domain, technology, or data characteristics.
Use this template when:
- Behavior varies by framework/language/domain
- Different rule sets apply to different contexts
- Progressive disclosure by detected context
- Multiple technology stacks supported
Workflow
Phase 1: Detect Context
Phase 2: Load Domain Rules
Phase 3: Apply Domain Logic
Context Detection
Financial Data:
- Keywords: revenue, profit, QoQ, YoY, EBITDA
- Date ranges with quarterly/annual patterns
- Currency symbols and financial notation
Scientific Data:
- Keywords: mean, median, standard deviation, p-value
- Statistical notation
- Hypothesis testing language
Business Metrics:
- Keywords: KPI, conversion, retention, churn
- Percentage-based metrics
- Funnel analysis patterns
Progressive Disclosure
Core workflow (this file):
- Context detection logic
- Domain routing rules
- High-level processing flow
Domain-specific details (references/):
- references/financial-analysis.md - Financial calculations and formulas
- references/scientific-calculations.md - Statistical methods
- references/business-metrics.md - KPI calculations
Example Usage
<detect-context>
Detected: Financial data (contains "revenue", "QoQ", quarterly dates)
Domain: Financial Analysis
Loading: /references/financial-analysis.md
</detect-context>
<apply-logic>
Calculating QoQ revenue growth:
Q4 2024: $1.2M → Q1 2025: $1.5M
QoQ Growth: +25.0%
YoY revenue comparison:
Q1 2024: $0.9M → Q1 2025: $1.5M
YoY Growth: +66.7%
Forecast Q2 2025: $1.7M (based on trend)
</apply-logic>
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?