agentleFS
Data-WiseData-Wise/craft/skills/modes/SKILL.md

mode-controller

Skill4 starsChanged 12 days agoMITView on GitHub

This skill should be used when the user asks to "switch mode", "use debug mode", "optimize mode", "release mode", or mentions execution modes for craft commands. Manages craft plugin execution modes (default, debug, optimize, release) for different use cases.

The file

Files
SKILL.md

Mode Controller Skill

Expert in managing craft plugin execution modes for different use cases.

Mode Definitions

ModeTime BudgetUse CaseBehavior
default< 10sQuick tasksMinimal output, fast
debug< 120sProblem solvingVerbose, traces, detailed
optimize< 180sPerformanceProfiling, benchmarks
release< 300sPre-releaseThorough, comprehensive

When to Use Each Mode

Default Mode

  • Quick code checks
  • Simple lookups
  • Status queries
  • Day-to-day operations

Debug Mode

  • Investigating errors
  • Tracing execution
  • Understanding behavior
  • Finding root causes

Optimize Mode

  • Performance profiling
  • Identifying bottlenecks
  • Memory analysis
  • Speed improvements

Release Mode

  • Pre-deployment validation
  • Complete test suites
  • Documentation checks
  • Full audits

Mode Selection Logic

If user specifies mode → use that mode
Else if error/bug context → debug mode
Else if performance context → optimize mode
Else if release/deploy context → release mode
Else → default mode

Mode-Specific Behaviors

Code Commands

CommandDefaultDebugOptimizeRelease
lintQuick checkAll rules + fix suggestionsPerf rulesAll rules + strict
coverageSummaryLine-by-lineBranch analysisFull report
deps-checkVersion onlyDependency treeSize analysisSecurity + licenses
ci-localFast checksFull traceParallel jobsAll CI steps

Test Commands

CommandDefaultDebugOptimizeRelease
runQuick testsVerbose + tracesParallelFull suite
coverageSummary %Uncovered linesBranch %HTML report
debugQuick traceFull stack traceProfilingAll info

Architecture Commands

CommandDefaultDebugOptimizeRelease
analyzeOverviewDeep diveHotspotsFull audit
reviewQuick checkLine-by-linePerf reviewComprehensive
diagramSimpleDetailedData flowComplete

Documentation Commands

CommandDefaultDebugOptimizeRelease
validateLinks onlyAll checksLoad timeFull validation
syncChanged filesAll files + diffMinimal updatesComplete sync
changelogRecentFull historyCompactDetailed

Integration

This skill is automatically activated when:

  • User includes mode keyword (debug, optimize, release)
  • Context suggests specific mode
  • Command supports mode parameter

Example Usage

/craft:code:lint                    # default mode
/craft:code:lint debug              # debug mode - verbose
/craft:code:lint optimize           # optimize mode - perf focus
/craft:code:lint release            # release mode - thorough

Output Format by Mode

Default

✓ Lint passed (3 files checked)

Debug

╭─ Lint Results (Debug Mode) ─────────────────────────╮
│ Files: 3                                            │
│ Rules: 45 active                                    │
├─────────────────────────────────────────────────────┤
│ src/main.py:12  - Line too long (82 > 80)          │
│ src/main.py:45  - Unused import 'os'               │
│ src/utils.py:8  - Missing docstring                │
├─────────────────────────────────────────────────────┤
│ Suggestions:                                        │
│   - Run: ruff check --fix                          │
╰─────────────────────────────────────────────────────╯

Optimize

╭─ Lint Results (Optimize Mode) ──────────────────────╮
│ Performance Impact:                                 │
│   - 2 inefficient patterns found                   │
│   - Estimated speedup: 15% with fixes              │
├─────────────────────────────────────────────────────┤
│ src/main.py:30  - Use list comprehension           │
│ src/utils.py:15 - Cache repeated call              │
╰─────────────────────────────────────────────────────╯

Release

╭─ Lint Results (Release Mode) ───────────────────────╮
│ Status: READY FOR RELEASE                          │
├─────────────────────────────────────────────────────┤
│ ✓ Style checks passed (45 rules)                   │
│ ✓ Type hints validated                             │
│ ✓ Documentation coverage: 95%                      │
│ ✓ No security issues                               │
│ ✓ License headers present                          │
├─────────────────────────────────────────────────────┤
│ Quality Score: 98/100                              │
╰─────────────────────────────────────────────────────╯

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.