decision-logic-framework
π―Skillfrom rdmptv/adbautoplayer
Defines decision rules and naming conventions for structuring Claude Code skills, scripts, and workflows with clear architectural separation.
Installation
npx skills add https://github.com/rdmptv/adbautoplayer --skill decision-logic-frameworkSkill Details
Decision rules for Claude Code skills, scripts, MDs, and workflows - project-agnostic patterns
Quick Reference (30 seconds)
Core Principle: Clear separation between Agents (orchestrators) and Skills (capabilities).
| Component | Location | Contains |
|-----------|----------|----------|
| Agents | .claude/agents/ | workflows/ (TOON + MD steps) |
| Skills | .claude/skills/ | scripts/ (UV Python) OR modules/ (single-file MDs) |
Decision Tree:
```
Need external Python packages? β UV Script (.py)
Need system commands? β UV Script (.py)
Reference/documentation? β Single-File MD (.md)
Simple data/rules? β Single-File MD (.md)
```
Naming (Mandatory Prefixes):
- Scripts:
{skill}_{action}.py(underscore) - Modules:
{category}-{topic}.md(hyphen)
---
Architecture Overview
Agents = Orchestrators with Workflows
```
.claude/agents/{category}/{agent-name}/
βββ {agent-name}.md # Agent definition
βββ workflows/ # Agent-owned workflows
βββ {workflow-name}/
βββ WORKFLOW.toon # Structure (TOON tabular)
βββ instructions.md # Overall guidance
βββ checklist.md # Validation (tier-2+)
βββ steps/
βββ step-NN-{action}.md
```
Skills = Capabilities with Scripts OR Modules
```
.claude/skills/{skill-name}/
βββ SKILL.md # Main entry (REQUIRED)
βββ scripts/ # For complex automation (OPTIONAL)
β βββ {skill}_{action}.py # UV scripts with prefix
βββ modules/ # For simple reference MDs (OPTIONAL)
βββ {category}-{topic}.md # Single-file MDs with prefix
```
---
When to Use This Skill
Use this skill when:
- Creating a new skill and deciding between scripts vs modules
- Choosing workflow complexity tier (0-3)
- Naming new files (scripts or modules)
- Understanding the architecture separation
- Reverse-engineering third-party apps
Load Order: This skill should be loaded FIRST when creating any new skill, agent, or workflow.
---
Available Modules
| Module | Purpose | When to Load |
|--------|---------|--------------|
| rule-script-vs-md.md | Decision logic for script vs MD | Creating new skill content |
| rule-naming-convention.md | Prefix naming system | Naming any new file |
| rule-skill-tiers.md | Tier 1-4 skill complexity | Assessing skill scope |
| rule-workflow-complexity.md | Tier 0-3 workflow selection | Creating workflows |
| pattern-single-file.md | Universal single-file rules | Reviewing file constraints |
Available Schemas
| Schema | Purpose | When to Load |
|--------|---------|--------------|
| workflow-schema.toon | Canonical WORKFLOW.toon format | Creating any workflow |
| step-schema.md | Template for step-NN-{action}.md | Creating workflow steps |
---
Decision Flowcharts
Script vs MD Decision
```
βββββββββββββββββββββββββββββββββββββββ
β NEW SKILL CONTENT NEEDED β
ββββββββββββββββ¬βββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββ
β Requires external Python packages? β
β (httpx, pandas, click, psutil...) β
βββββββββββββββ¬ββββββββββββββββββββββββ€
β YES β NO β
β β β β β
β UV SCRIPT β Requires shell/sys? β
βββββββββββββββ΄ββββββββββββ¬ββββββββββββ
β
βββββββββββββ΄ββββββββββββ
β YES β NO β
β β β β β
β UV SCRIPT β MD OK β
βββββββββββββββ΄ββββββββββ
```
Workflow Tier Selection
```
βββββββββββββββββββββββββββββββββββββββ
β WORKFLOW COMPLEXITY β
ββββββββββββββββ¬βββββββββββββββββββββββ
β
ββββββββββββΌβββββββββββ¬ββββββββββββ
βΌ βΌ βΌ βΌ
βββββββββ βββββββββ βββββββββββ βββββββββββ
βTier 0 β βTier 1 β β Tier 2 β β Tier 3 β
β1 step β β3-5 β β 5-10 β β 10+ β
βhotfix β βsimple β β medium β β complex β
βββββββββ βββββββββ βββββββββββ βββββββββββ
```
---
Prefix Naming Quick Reference
Scripts (UV Python)
```
Pattern: {skill-name}_{action}.py
Separator: underscore (_)
Examples:
kalshi_get-market.py
kalshi_search-events.py
system_analyze-cpu.py
builder_generate-skill.py
```
Modules (Single-File MDs)
```
Pattern: {category}-{topic}.md
Separator: hyphen (-)
Categories: api, pattern, rule, guide, schema, example
Examples:
api-endpoints.md
pattern-authentication.md
rule-naming-convention.md
guide-quick-start.md
```
---
Works Well With
Agents:
builder-skill- Skill creation with tier systembuilder-workflow- TOON + MD workflow generationbuilder-agent- Agent with workflows/ generation
Skills:
moai-library-toon- TOON format referencemoai-foundation-core- Core execution rulesbuilder-skill-uvscript- UV script examples
Commands:
/moai:1-plan- SPEC generation with decision framework/builder:generate-skill- Skill creation workflow
---
Version: 1.0.0
Status: Active
Last Updated: 2025-12-02
More from this repository10
Automates Android device interactions through comprehensive ADB scripting, enabling game bot development, device management, and computer vision workflows.
Generates AI-powered code scaffolding for MoAI agents, skills, commands, and tests using enterprise-grade Context7 patterns and UV CLI standards.
moai-foundation-uiux skill from rdmptv/adbautoplayer
Unifies enterprise programming across 25+ languages with patterns, best practices, and Context7 integration for seamless multi-language development.
Orchestrates universal MCP integrations by seamlessly connecting Figma, Notion, Nano-Banana, and custom services with advanced multi-platform workflow automation.
Develops and deploys custom MCP servers with FastMCP, enabling type-safe tool, resource, and prompt exposures for AI model interactions.
Optimizes macOS system resources by concurrently executing 40 specialized agents across memory, disk, CPU, and process management domains.
moai-connector-figma skill from rdmptv/adbautoplayer
Orchestrates AI-powered development workflows with intelligent debugging, refactoring, performance optimization, and quality enforcement across enterprise projects.
Defines token-efficient YAML-based agent and workflow definitions using BMAD Method patterns, reducing complexity by 40-60% compared to traditional formats.