component-make-new
Create a new component skeleton
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-12
- Stars
- ★ 3
- Forks
- 4
01 前言 Front Matter
- name
- component-make-new
- description
- Create a new component skeleton
- argument-hint
- [component-name, receptacle-names...]
03 SKILL.md 正文
Building the skeleton for component named $0 involves the following steps:
-
The interface name is the component name prefixed with the letter 'I'. The component name is $0, e.g., FooBar is the component name, IFooBar is its interface name.
-
If it does not already exist, create interface definition file, e.g., ifoobar.rs in components/interfaces directory.
-
Interactively ask if any other interfaces will be provided by this component.
-
Create a new sub-directory under the components directory. The name of the directory is a lower-case hyphen-ized version of $0.
-
Implement dummy functions for all provided interfaces.
-
Add recepticals for other interface names specified by other arguments, $1, $2 and so forth. The receptable must have a corresponding interface defined in src/interfaces.
-
Add a permissions file .claude/settings.json, in the newly created sub-directory, that allows access to the component itself, lib/component-framework and any other directories corresponding to components that are listed as receptacles. We want to avoid giving access to other components that are not directly used.
-
Copy into the new component directory's
.claude/skillsonly the skills whose names match anincludepattern in.claude/component-local-skills.json(patterns support a trailing*wildcard; other entries match exactly). This allowlist is the single source of truth for which skills are component-local — do not hard-code the list here. Skip any skill that does not match. -
Run 'specify init . --ai claude' in the component source directory.
-
Run 'specify extension add spec-kit-sync --from https://github.com/bgervin/spec-kit-sync/archive/refs/heads/master.zip' in the component directory.
04 同仓库更多 Skills
tools-spin-sync
Synchronize Spin/Promela models with current source code and re-verify
tools-spin-model
Create a new Spin/Promela formal verification model for a system property
tools-creusot-install
Install the Creusot Rust verification tool
tools-creusot-init
Prepare an existing Cargo project to use Creusot formal verification
tools-creusot-coq-install
Add Coq 8.20 as an additional prover to an existing Creusot installation, for verification conditions that SMT solvers cannot discharge
tools-creusot-annotate-interfaces
Formally verify a component's properties with Creusot and annotate its interface definitions