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

composable-primitives可组合原语

Agent Skill

composable-primitives 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

329

周安装

14

GitHub Stars

61

下载量

115
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:composable-primitives(可组合原语)
来源仓库:https://github.com/melodic-software/claude-code-plugins
仓库路径:skills/composable-primitives
安装命令:
npx skills add https://github.com/melodic-software/claude-code-plugins --skill composable-primitives
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/melodic-software/claude-code-plugins --skill composable-primitives

简介

composable-primitives 设计可组合的智能代理原语,用于灵活创建工作流。

  • 适用于新代理工作流设计、SDLC 定制和问题分类映射场景。
  • 提供分类、规划、实现、审查等基础原语,支持组织特定组合。
  • 使用时需理解确定性执行与非确定性执行的 SDK 要求。
  • 建议先掌握 @composable-steps.md 和 @adw-framework.md 相关模式。

SKILL.md

Composable Primitives Skill

Guide design of composable agentic primitives for flexible workflow creation.

When to Use

  • Designing new agentic workflows
  • Customizing SDLC for specific needs
  • Mapping problem classes to primitives
  • Building organization-specific compositions

The Secret

"The secret of tactical agentic coding is that it's not about the software developer lifecycle at all. It's about composable agentic primitives you can use to solve any engineering problem class."

Core Primitives

PrimitivePurposeInputOutput
ClassifyCategorize inputIssue/taskClassification
PlanCreate implementation specIssuePlan file
BuildImplement the planPlan fileCode changes
TestValidate functionalityCode changesPass/fail
ReviewValidate alignmentSpec + codeIssue list
PatchFix specific issuesIssue descriptionTargeted fix
DocumentGenerate documentationCode changesDoc files
ShipDeploy to productionValidated codeDeployed state
BranchCreate isolated contextClassificationBranch name
CommitSave checkpointChangesCommit hash

Composition Workflow

Step 1: Identify Problem Class

What type of work?

  • Chore (simple, low risk)
  • Bug (medium complexity, clear criteria)
  • Feature (complex, full SDLC)
  • Hotfix (urgent, minimal process)
  • Documentation (content only)

Step 2: Select Primitives

Based on problem class, choose primitives:

Problem ClassPrimitives
ChoreClassify -> Build -> Test -> Ship
BugClassify -> Plan -> Build -> Test -> Review -> Ship
FeatureFull SDLC
HotfixPatch -> Test -> Ship
DocumentationDocument -> Review -> Ship

Step 3: Order by Dependencies

Ensure correct sequencing:

  • Plan before Build (Build needs plan)
  • Build before Test (Test needs code)
  • Test before Ship (Ship needs validation)

Step 4: Add Validation Points

Where should failures stop the pipeline?

Plan -> Build -> [Test GATE] -> Review -> [Review GATE] -> Ship

Step 5: Define Entry/Exit

  • Entry: What triggers this workflow?
  • Exit: What signals completion?

Standard Compositions

Full SDLC

Classify -> Plan -> Build -> Test -> Review -> Document -> Ship

ZTE (Zero-Touch)

Classify -> Plan -> Build -> Test -> Review -> Document -> Ship
                              | |
                          [GATE]         [GATE]

Quick Fix

Classify -> Patch -> Test -> Ship

Review-Driven

Review -> Patch -> Test -> Ship

Custom Composition Design

Organization Factors

Consider:

  • Testing requirements (mandatory E2E?)
  • Review processes (who reviews?)
  • Documentation standards (auto-generated?)
  • Deployment pipelines (manual approval?)
  • Compliance needs (audit trails?)

Example: Compliance-Heavy

Classify -> Plan -> [Compliance Review] -> Build -> Test ->
[Security Scan] -> Review -> Document -> [Approval] -> Ship

Example: Rapid Iteration

Build -> Test -> Ship (no planning for small changes)

Key Memory References

  • @composable-primitives.md - Detailed primitives documentation
  • @template-engineering.md - Templates as primitive definitions
  • @adw-anatomy.md - ADW as composition framework

Output Format

Provide composition design:

## Workflow Composition

**Problem Class:** {type}
**Entry Trigger:** {trigger}
**Exit Criteria:** {criteria}

### Primitives Selected
1. Classify - Categorize the task
2. Plan - Create implementation spec
3. Build - Implement changes
4. Test - Validate functionality
5. Ship - Deploy to production

### Composition Flow

Classify -> Plan -> Build -> Test -> Ship | [GATE: Must pass]

### Validation Gates

- After Test: Abort if tests fail
- After Review: Optional based on confidence

### Customizations

- [Organization-specific additions]

Anti-Patterns

  • Rigid SDLC thinking (must do all steps)
  • Over-composition (too many primitives)
  • Under-composition (missing critical steps)
  • Ignoring failure paths (no gates)
  • One-size-fits-all (same for all problem classes)

Version History

  • v1.0.0 (2025-12-26): Initial release

Last Updated

Date: 2025-12-26 Model: claude-opus-4-5-20251101

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

Antigravity

28.22%
按下载量换算32

trae

22.33%
按下载量换算26

windsurf

16.91%
按下载量换算19

Claude Code

12.98%
按下载量换算15

Codex

7.4%
按下载量换算9

Gemini CLI

3.39%
按下载量换算4

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills