skill-create-workflow
npx skills add https://github.com/caldiaworks/caldiaworks-marketplace --skill skill-create-workflow
Agent 安装分布
Skill 文档
Skill Development Workflow
Orchestrate the full lifecycle of creating a skill for the CaldiaWorks marketplace.
This workflow combines general-purpose skills (ideation, usdm) with skill-specific tools (skill-creator) to guide the user from a rough idea to a published skill.
Mandatory Execution Rule
Each invoked skill defines its own internal steps (e.g., ideation has Steps 1-6, USDM has Steps 1-5, skill-creator has its own workflow). Every internal step of every invoked skill must be executed in order without exception. Do not skip, merge, or silently omit any step â even if the step seems trivial or the answer seems obvious.
If a step requires user input or confirmation, ask. If a step produces output, present it. If a step offers output format choices, ask the user to choose.
Violating this rule degrades the quality of the output and erodes user trust. There is no acceptable reason to skip a step.
Workflow Steps
Execute these steps in order. Each step produces output that feeds into the next.
If the user already has artifacts from earlier steps (e.g., an idea document or a USDM requirements document), skip the completed steps and start from the appropriate point:
- User has an idea document â start at Step 2
- User has a USDM requirements document â start at Step 3
- User has an implemented skill â start at Step 4
Step 1: Ideation
Invoke the ideation skill to explore and refine the skill idea.
- Input: User’s rough idea or problem description
- Output: Idea document at
.docs/ideas/YYYY-MM-DD-<topic>.md - The idea document captures What, Why, Scope, Stakeholders, and Approaches
Ask the user: “Do you want to proceed to requirements definition, or keep this as an idea draft?”
- If the user wants to proceed â continue to Step 2
- If the user wants to stop â end the workflow here
Step 2: Requirements Definition
Invoke the usdm skill with the idea document as input.
- Input: The idea document from Step 1
- Output: USDM requirements document at
.docs/ - The requirements document decomposes the idea into Requirement â Reason â Description â Specification hierarchy
Ask the user: “Requirements are ready. Proceed to implementation?”
Step 3: Implementation
Invoke the skill-creator skill to implement the skill.
- Input: The USDM requirements document from Step 2
- Follow the skill-creator process: understand â plan â initialize â edit â test â iterate
- Output: A complete skill directory under
skills/<skill-name>/
The skill must include:
SKILL.mdwith proper frontmatter- Any necessary bundled resources (scripts/, references/, assets/)
.claude-plugin/plugin.json
Implementation is not complete until skill-creator’s full cycle (including eval and iteration) has been executed. A draft SKILL.md alone does not constitute a completed implementation. The skill-creator defines test cases, runs them, grades expectations, and iterates until stopping criteria are met. All of these steps must be performed.
Step 4: Marketplace Registration
Register the skill in both marketplace manifests.
- Verify
.claude-plugin/plugin.jsonexists in the skill directory:
{
"name": "<skill-name>",
"version": "0.1.0",
"description": "<Short description>",
"skills": ["."]
}
-
Add the skill path to both root-level manifests:
.claude-plugin/plugin.jsonâ Add"./skills/<skill-name>"to theskillsarray.claude-plugin/marketplace.jsonâ Add"./skills/<skill-name>"toplugins[0].skillsarray
-
Bump the version in both files. Both must always have the same version number.
-
Add the skill to
README.md:- Add the
npx skills addinstall command to the installation section - Add the skill name and description to the Available Skills table
- Add the
-
Report completion to the user with the registered skill path.
Step 5: Version Management
If this workflow modified any existing skills (not just the new skill), update their versions.
- Check
git difffor all files changed during this workflow. - For each skill directory under
skills/that has modifications, bump theversionfield in its.claude-plugin/plugin.json. - Do not modify files under
.claude/â that directory is managed by the plugin installation system, not by this workflow.
Step 6: Final Verification
Before reporting completion, verify all artifacts are consistent.
- Every skill listed in
.claude-plugin/marketplace.jsonplugins[0].skillsis also listed in.claude-plugin/plugin.jsonskills, and vice versa. - Both root manifests have the same version number.
- Every skill listed in the manifests exists under
skills/<name>/with aSKILL.mdand.claude-plugin/plugin.json. - Every skill listed in the manifests has an entry in
README.md(install command + table row). - No unintended files were added to
.gitignoreâ check that existing patterns are not duplicated.
Step 7: Branch Cleanup
After all PRs are merged and the workflow is complete, clean up the working environment.
- Switch back to the
developbranch and pull the latest changes. - Delete remote feature branches created during this workflow using
git push origin --delete <branch>. - Run
git fetch --pruneto update remote tracking state. - Delete local feature branches created during this workflow whose upstream is gone.
- Delete the eval workspace directory if it exists (
skills/<skill-name>-workspace/). - Verify the working tree is clean with
git statusandgit branch -a.