Token导航 LogoToken导航

Agent Skill · 研究检索

concept-scaffold-gen(概念支架生成)

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

concept-scaffold-gen 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 67,168。

总安装 250周安装 10GitHub Stars 公开资料未说明下载 81核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:concept-scaffold-gen(概念支架生成)
来源仓库:https://github.com/itshalffull/concept-oriented-programming-framework
仓库路径:skills/concept-scaffold-gen
安装命令:
npx skills add https://github.com/itshalffull/concept-oriented-programming-framework --skill concept-scaffold-gen
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/itshalffull/concept-oriented-programming-framework --skill concept-scaffold-gen

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于生成带注解和类型定义的概念规格框架,支持状态声明与能力注册。适合从零开始创建新概念规范,提供标准化模板和 Jackson 方法论指导。每个概念仅服务于单一目的,确保设计清晰且易于维护。安装前需确认权限范围和维护状态,注意是否涉及联网、命令执行或文件读写操作。

concept-scaffold-gen 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/concept-scaffold-gen

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/itshalffull/concept-oriented-programming-frame…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

concept-scaffold-gen 怎么安装?

在终端执行 npx skills add https://github.com/itshalffull/concept-oriented-programming-framework --ski…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

concept-scaffold-gen 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

concept-scaffold-gen 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

concept-scaffold-gen 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

concept-scaffold-gen 用的人多吗?

公开数据是累计安装 250 次,近一周安装 10 次,下载 81 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

concept-scaffold-gen 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
concept-scaffold-gen

概念支架生成 · 本页

250—调用外部服务未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

ConceptScaffoldGen

Scaffold a concept spec for $ARGUMENTS with annotations, state declarations (groups, enums, records), typed action signatures, capabilities, and a register() action.

When to use: Use when creating a new concept specification from scratch. Generates a.concept file with annotations (@version, @category, @visibility, @gate), purpose, state (with groups, enum types, record types), actions with typed variants, invariants, capabilities block, and a register() action following Jackson's methodology.

Design Principles

  • Singularity: Each concept serves exactly one purpose — if the purpose has 'and', it's two concepts.
  • Independence: A concept never references another concept's types or calls another concept's actions. Use type parameters and syncs.
  • Sufficiency & Necessity: Every state field is needed by at least one action. Every action serves the concept's purpose. No dead state.
  • Invariant Completeness: Use all six invariant constructs comprehensively: example (named tests), forall (quantified properties), always (state predicates), never (safety), eventually (liveness), action requires/ensures (contracts). Cover core purpose, error paths, constraints, state transitions, and boundary conditions. Aim for 2-5 invariants per concept.
  • Success is ok: The happy-path variant must always be named ok. Do not use domain-specific success names like created, configured, registered, updated. Domain context belongs in the output fields. Exception: actions with multiple distinct success outcomes that syncs need to distinguish (e.g., ok/miss for cache lookup, clean/conflicts for merge).
  • Description Quality: Every variant description must explain the outcome in domain terms — never echo the variant name ('Created.') or use vague text ('Failed.'). Error variants explain what went wrong; ok variants explain what is now true.

Step-by-Step Process

Step 1: Register Generator

Self-register with PluginRegistry so KindSystem can track ConceptConfig → ConceptSpec transformations. Registration is also handled automatically by register-generator-kinds.sync.

Examples: *Register the concept scaffold generator*

const result = await conceptScaffoldGenHandler.register({}, storage);

Step 2: Preview Changes

Dry-run the generation using Emitter content-addressing to classify each output file as new, changed, or unchanged. No files are written.

Arguments: $0 name (string), $1 typeParam (string), $2 purpose (string), $3 stateFields (statefield[]), $4 actions (actiondef[]), $5 version (int?), $6 gate (bool?), $7 capabilities (string[])

Step 3: Generate Concept Spec

Generate a well formed. concept file with state declarations, typed action signatures, variant returns, and a register () action for PluginRegistry discovery.

Arguments: $0 name (string), $1 typeParam (string), $2 purpose (string), $3 stateFields (statefield[]), $4 actions (actiondef[]), $5 version (int?), $6 gate (bool?), $7 capabilities (string[])

Checklist:

  • Concept name is PascalCase?
  • Type parameter is a single capital letter?
  • Purpose block describes why, not what?
  • State fields use correct relation types (set, ->, option, list)?
  • Every action has at least one variant?
  • register() action is included for PluginRegistry?
  • Annotations (@category, @visibility) are present?
  • @version annotation included if this is a versioned spec?
  • State fields use enum types for fixed value sets?
  • State groups organize related fields?
  • Capabilities block present for generator/plugin concepts?
  • Variant descriptions explain outcomes, not just echo variant names?
  • All files written through Emitter (not directly to disk)?
  • Source provenance attached to each file?
  • Generation step recorded in GenerationPlan?

Examples: *Generate a basic concept*

clef scaffold concept --name User --actions create,update,delete

*Generate with custom state*

clef scaffold concept --name Article --param A --category domain

*Generate with version and gate*

clef scaffold concept --name Approval --version 2 --gate --capabilities search,export

Step 4: Edit the Concept Spec

Refine the generated.concept file: 1. Add annotations: @version(N) for versioning, @gate for async gates, @category("domain") for grouping, @visibility("public"|"internal"). 2. Write a purpose block explaining why the concept exists (not how it works). 3. Design state fields: sets (set T), mappings (T -> Type), option/list wrappers, enum types ({Active | Inactive | Pending}), record types ({key: String, value: String}), state groups for related fields. 4. Define actions with typed params and variant returns. All primitives: String, Int, Float, Bool, Bytes, DateTime, ID. 5. Write invariants comprehensively using all six constructs: example (named conformance tests), forall (quantified properties with given/in), always (state predicates), never (safety properties), eventually (liveness), action requires/ensures (contracts). Use property assertions (d.status = "complete") and when guard clauses. Aim for 2-5 invariants covering: core purpose, error paths, constraint enforcement, state transitions, boundary conditions. 6. Add capabilities block if the concept is a generator or plugin. 7. Add fixtures to every action. CRITICAL: error-case fixtures (names containing empty_, invalid_, duplicate_, missing_, bad_, etc.) MUST include an explicit -> error or -> <specific_variant> annotation. Omitting the arrow defaults to -> ok, generating wrong conformance tests. ok fixtures for non-creator actions need after chains to seed prerequisite data.

Step 5: Generate Tests from Invariants

After writing invariants, generate comprehensive tests using TestGen. Invoke /create-implementation --concept <Name> first to create the handler, then generate tests from invariants: 1. Run TestGen/generate (MCP: test_gen_generate) with concept_ref and language to compile all six invariant construct types into tests:

  • example blocks → conformance test vectors (1:1 after/then mapping)
  • forall blocks → property-based tests with generated domains
  • always blocks → stateful sequence tests checking state predicates
  • never blocks → violation-attempt tests trying to reach bad states
  • eventually blocks → bounded liveness tests
  • requires/ensures → contract-constrained PBT with pre/postconditions
  1. Review generated test files — they should NOT need manual editing for example/forall/always/never constructs. Contract tests (requires/ensures) may need manual generator tuning for complex domain types. 3. Run TestGen/coverage (MCP: test_gen_coverage) to verify all invariant constructs have generated tests. Check the construct_coverage breakdown — each kind should show covered > 0. 4. Run npx vitest run generated/tests/<concept>.* to verify generated tests pass. 5. If coverage gaps exist, add more invariants to the concept spec (go back to the edit step) and re-run TestGen/regenerate.

References

Supporting Materials

Quick Reference

InputTypePurpose
nameStringPascalCase concept name
typeParamStringType parameter letter (default: T)
purposeStringPurpose description
categoryStringAnnotation category (domain, devtools, etc.)
versionInt@version annotation number
gateBool@gate annotation for async gates
stateFieldslist StateFieldState declarations (with group, enum, record support)
actionslist ActionDefAction signatures with variants
capabilitieslist StringCapabilities block entries
invariantslist StringInvariant steps

Anti-Patterns

Purpose describes implementation

Purpose block says how the concept works instead of why it exists.

Bad:

purpose {
  Store users in a Map<string, User> and provide CRUD operations
  via async handler methods.
}

Good:

purpose {
  Manage user identity and profile information.
}

Missing variants

Action only has ok variant — no error handling path.

Bad:

action create(name: String) {
  -> ok(user: U) { Created. }
}

Good:

action create(name: String) {
  -> ok(user: U) { New user registered and ready for profile setup. }
  -> duplicate(name: String) { A user with this name already exists. }
  -> error(message: String) { Creation failed due to a storage or validation error. }
}

Terse or echo descriptions

Variant descriptions that echo the variant name or use a single generic word — they tell the reader nothing about the actual outcome.

Bad:

action create(name: String) {
  -> ok(user: U) { Created. }
  -> error(message: String) { Failed. }
}

Good:

action create(name: String) {
  -> ok(user: U) { New user registered and ready for authentication setup. }
  -> error(message: String) { Creation failed due to a storage or validation error. }
}

Validation

*Generate a concept scaffold:*

npx tsx cli/src/index.ts scaffold concept --name User --actions create,update,delete

*Validate generated concept:*

npx tsx cli/src/index.ts check specs/app/user.concept

*Generate tests from invariants:*

npx tsx cli/src/index.ts test-gen --concept User --language typescript

*Run generated invariant tests:*

npx vitest run generated/tests/User.*

*Check invariant coverage:*

npx tsx cli/src/index.ts test-gen --coverage --concept User

*Run scaffold generator tests:*

npx vitest run tests/scaffold-generators.test.ts

Related Skills

SkillWhen to Use
/concept-designerDesign concepts using Jackson's methodology before generating
/create-handlerGenerate handler implementations for the concept
/create-syncGenerate sync rules connecting the concept
/test-genGenerate tests from invariants (TestGen/generate, TestGen/coverage)
/create-view-queryFor view-layer concepts, compose with QueryProgram/FilterSpec/SortSpec instead of ad-hoc data fetching

平台分布

Codex

35.04%
按下载量换算28

Claude

32.19%
按下载量换算26

Cursor

19.27%
按下载量换算16

Gemini CLI

9.2%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills