Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计通过

moai-foundation-core摩艾基础核心

Agent Skill

moai-foundation-core 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

196

周安装

8

GitHub Stars

公开资料未说明

下载量

63
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:moai-foundation-core(摩艾基础核心)
来源仓库:https://github.com/rdmptv/adbautoplayer
仓库路径:skills/moai-foundation-core
安装命令:
npx skills add https://github.com/rdmptv/adbautoplayer --skill moai-foundation-core
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/rdmptv/adbautoplayer --skill moai-foundation-core

简介

用于查找、检索和筛选相关信息,适合基于关键词或场景定位内容。

  • 支持多轮交互和结果精炼,便于 Agent 在复杂任务中提取事实。
  • 通过 GitHub 安装,需确认是否会触发联网或执行系统命令。
  • 权限和稳定性未经验证,建议在使用前人工复核输出。
  • 适用于 Codex、Claude、Cursor 和 Gemini CLI,实际能力依赖仓库实现。

SKILL.md

MoAI Foundation Core

Foundational principles and architectural patterns that power MoAI-ADK's AI-driven development workflow.

Core Philosophy: Quality-first, test-driven, modular, and efficient AI development through proven patterns and automated workflows.

Quick Reference (30 seconds)

What is MoAI Foundation Core? Six essential principles that ensure quality, efficiency, and scalability in AI-powered development:

  1. TRUST 5 Framework - Quality gate system (Test-first, Readable, Unified, Secured, Trackable)
  2. SPEC-First TDD - Specification-driven test-driven development workflow
  3. Delegation Patterns - Task orchestration via specialized agents (never direct execution)
  4. Token Optimization - 200K budget management and context efficiency
  5. Progressive Disclosure - Three-tier knowledge delivery (Quick → Implementation → Advanced)
  6. Modular System - File splitting and reference architecture for scalability

Quick Access:

Use Cases:

  • New agent creation with quality standards
  • New skill development with structural guidelines
  • Complex workflow orchestration
  • Token budget planning and optimization
  • Documentation architecture design
  • Quality gate configuration

Implementation Guide (5 minutes)

1. TRUST 5 Framework - Quality Assurance System

Purpose: Automated quality gates ensuring code quality, security, and maintainability.

Five Pillars:

PillarRequirementValidationFailure Action
Test-first≥85% coveragepytest --covBlock merge, generate tests
ReadableClear namingruff linterWarning, suggest refactor
UnifiedConsistent patternsblack, isortAuto-format or warn
SecuredOWASP compliancesecurity-expertBlock merge, review
TrackableClear commitsGit regexSuggest format

Integration Points:

  • Pre-commit hooks → Automated validation
  • CI/CD pipelines → Quality gate enforcement
  • Agent workflows → core-quality validation
  • Documentation → Quality metrics

Detailed Reference: TRUST 5 Framework Module


2. SPEC-First TDD - Development Workflow

Purpose: Specification-driven development ensuring clear requirements before implementation.

Three-Phase Workflow:

Phase 1: SPEC (/moai:1-plan)
 workflow-spec → EARS format
 Output: .moai/specs/SPEC-XXX/spec.md
 Execute /clear (saves 45-50K tokens)

Phase 2: TDD (/moai:2-run)
 RED: Failing tests
 GREEN: Passing code
 REFACTOR: Optimize
 Validate: ≥85% coverage

Phase 3: Docs (/moai:3-sync)
 API documentation
 Architecture diagrams
 Project reports

EARS Format:

  • Ubiquitous: System-wide (always active)
  • Event-driven: Trigger-based (when X, do Y)
  • State-driven: Conditional (while X, do Y)
  • Unwanted: Prohibited (shall not do X)
  • Optional: Nice-to-have (where possible, do X)

Token Budget: SPEC 30K | TDD 180K | Docs 40K | Total 250K

Key Practice: Execute /clear after Phase 1 to initialize context.

Detailed Reference: SPEC-First TDD Module


3. Delegation Patterns - Agent Orchestration

Purpose: Task delegation to specialized agents, avoiding direct execution.

Core Principle: Alfred NEVER executes directly. All work via Task().

Delegation Syntax:

result = await Task(
 subagent_type="specialized_agent",
 prompt="Clear, specific task",
 context={"relevant": "data"}
)

Three Patterns:

Sequential (dependencies):

design = Task(subagent_type="api-designer", prompt="Design API")
code = Task(subagent_type="backend-expert", prompt="Implement", context={"design": design})

Parallel (independent):

results = await Promise.all([
 Task(subagent_type="backend-expert", prompt="Backend"),
 Task(subagent_type="frontend-expert", prompt="Frontend")
])

Conditional (analysis-based):

analysis = Task(subagent_type="debug-helper", prompt="Analyze")
if analysis.type == "security":
 Task(subagent_type="security-expert", prompt="Fix")

Agent Selection:

  • Simple (1 file): 1-2 agents sequential
  • Medium (3-5 files): 2-3 agents sequential
  • Complex (10+ files): 5+ agents mixed

Detailed Reference: Delegation Patterns Module


4. Token Optimization - Budget Management

Purpose: Efficient 200K token budget through strategic context management.

Budget Allocation:

PhaseBudgetStrategy
SPEC30KLoad requirements only, /clear after
TDD180KSelective file loading
Docs40KResult caching, templates
Total250KPhase separation

Token Saving Strategies:

  1. Phase Separation: /clear between phases
  • After /moai:1-plan (saves 45-50K)
  • When context > 150K
  • After 50+ messages
  1. Selective Loading: Load only necessary files
  2. Context Optimization: 20-30K tokens target
  3. Model Selection: Sonnet (quality) | Haiku (speed/cost)

Monitoring: /context command, track budget, suggest /clear

Cost Savings: Haiku 70% cheaper → 60-70% total savings

Detailed Reference: Token Optimization Module


5. Progressive Disclosure - Content Architecture

Purpose: Three-tier knowledge delivery balancing value with depth.

Three Levels:

LevelTimeContentTokens
Quick Reference30sCore principles1,000
Implementation5minWorkflows, examples3,000
Advanced10+minDeep dives, edge cases5,000

SKILL.md Structure (≤500 lines):

## Quick Reference (30s)
## Implementation Guide (5min)
## Advanced Patterns (10+min)
## Works Well With

Module Architecture:

  • SKILL.md: Entry point, cross-references
  • modules/: Deep dives, unlimited
  • examples.md: Working samples
  • reference.md: External links

File Splitting (when >500 lines):

SKILL.md (500 lines)
 Quick (80-120)
 Implementation (180-250)
 Advanced (80-140)
 References (10-20)

Overflow → modules/[topic].md

Detailed Reference: Progressive Disclosure Module


6. Modular System - File Organization

Purpose: Scalable file structure enabling unlimited content.

Standard Structure:

.claude/skills/skill-name/
 SKILL.md # Core (≤500 lines)
 modules/ # Extended (unlimited)
 patterns.md
 examples.md # Working samples
 reference.md # External links
 scripts/ # Utilities (optional)
 templates/ # Templates (optional)

File Principles:

  1. SKILL.md: ≤500 lines, progressive disclosure, cross-references
  2. modules/: Topic-focused, no limits, self-contained
  3. examples.md: Copy-paste ready, commented
  4. reference.md: API docs, resources

Cross-Reference Syntax:

Details: [Module](modules/patterns.md)
Examples: [Examples](examples.md#auth)
External: [Reference](reference.md#api)

Discovery Flow: SKILL.md → Topic → modules/[topic].md → Deep dive

Detailed Reference: Modular System Module


Advanced Implementation (10+ minutes)

Cross-Module Integration

TRUST 5 + SPEC-First TDD:

spec = Task(subagent_type="workflow-spec", prompt="SPEC with TRUST 5")
impl = Task(subagent_type="workflow-tdd", prompt="≥85% coverage",
 context={"spec": spec, "quality_gates": ["TRUST5"]})
validation = Task(subagent_type="core-quality", prompt="Validate TRUST 5",
 context={"implementation": impl})

Token-Optimized Delegation:

spec = Task(subagent_type="workflow-spec", prompt="Generate SPEC")
execute_clear() # Save 45-50K
results = await Promise.all([
 Task(subagent_type="backend-expert", prompt="Backend", context={"spec_id": spec.id}),
 Task(subagent_type="frontend-expert", prompt="Frontend", context={"spec_id": spec.id})
])
Task(subagent_type="workflow-docs", prompt="Docs", context={"results": results})

Progressive Agent Workflows:

quick = Task(subagent_type="debug-helper", prompt="Quick diagnosis")
if quick.complexity == "high":
 detailed = Task(subagent_type="debug-helper", prompt="Detailed analysis")
 if detailed.requires_expert:
 expert = Task(subagent_type="security-expert", prompt="Deep dive")

Quality Validation

Pre-Execution:

def validate_execution_requirements(task, context):
 return all([
 validate_security_clearance(task),
 validate_resource_availability(context),
 validate_quality_standards(task),
 validate_permission_compliance(task)
 ])

Post-Execution:

def validate_execution_results(result, task):
 validations = [
 validate_output_quality(result),
 validate_security_compliance(result),
 validate_test_coverage(result),
 validate_documentation_completeness(result)
 ]
 if not all(validations):
 raise QualityGateError("Quality gate failures")
 return True

Error Handling

Delegation Failure:

try:
 result = Task(subagent_type="backend-expert", prompt="Complex task")
except AgentExecutionError as e:
 analysis = Task(subagent_type="debug-helper", prompt=f"Analyze: {e}")
 if analysis.issue == "complexity":
 results = await Promise.all([
 Task(subagent_type="backend-expert", prompt="Subtask 1"),
 Task(subagent_type="backend-expert", prompt="Subtask 2")
 ])

Token Budget Exceeded:

if token_usage > 150_000:
 execute_clear()
 context = {"spec_id": current_spec.id, "phase_results": summarize(previous_results)}
 Task(subagent_type="next-agent", prompt="Continue", context=context)

Works Well With

Agents:

  • agent-factory - Create agents with foundation principles
  • skill-factory - Generate skills with modular architecture
  • core-quality - Automated TRUST 5 validation
  • workflow-spec - EARS format specification
  • workflow-tdd - RED-GREEN-REFACTOR execution
  • workflow-docs - Documentation with progressive disclosure

Skills:

  • moai-cc-claude-md - CLAUDE.md with foundation patterns
  • moai-cc-configuration - Config with TRUST 5
  • moai-cc-memory - Token optimization
  • moai-core-ask-user-questions - User clarification
  • moai-context7-integration - MCP integration

Commands:

  • /moai:1-plan - SPEC-First Phase 1
  • /moai:2-run - TDD Phase 2
  • /moai:3-sync - Documentation Phase 3
  • /moai:9-feedback - Continuous improvement
  • /clear - Token management

Foundation Modules (Extended Documentation):


Quick Decision Matrix

ScenarioPrimary PrincipleSupporting
New agentTRUST 5 + DelegationToken, modular
New skillProgressive + ModularTRUST 5, token
WorkflowDelegationSPEC-First, token
QualityTRUST 5SPEC-First
BudgetToken OptimizationProgressive, modular
DocsProgressive + ModularToken

Module Deep Dives:

Full Examples: examples.md External Resources: reference.md


Version: 2.2.0 Last Updated: 2025-11-26 Status: Active (496 lines, within 500-line limit)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.49%
按下载量换算18

windsurf

23.03%
按下载量换算15

OpenCode

16.41%
按下载量换算10

Codex

12.25%
按下载量换算8

Antigravity

7.6%
按下载量换算5

Gemini CLI

3.35%
按下载量换算2

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills