Agent skill
new-process-step
Add a new type of process step to the VSM builder with custom visualization
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/new-process-step
SKILL.md
Skill: Add New Process Step Type
Add a new type of process step to the VSM builder.
Usage
/new-process-step <StepTypeName>
Prerequisites
Create a feature file first using /new-feature that describes:
- How users select this step type
- What unique properties it has
- How it displays on the canvas
Process
- Feature file - Define behavior in Gherkin (must be approved)
- Step definitions - Write failing acceptance tests
- Implementation - Build the step type
Implementation Steps
- Add the step type constant to
src/data/stepTypes.js - Create the custom React Flow node at
src/components/canvas/nodes/{StepTypeName}Node.jsx - Register the node type in
src/components/canvas/nodeTypes.js - Add default values for the step type in
src/data/stepDefaults.js - Update the step creation UI in
src/components/builder/StepSelector.jsx
Required Properties
Every process step must include:
id: Unique identifiername: Display nametype: Step type constantprocessTime: Time for actual work (in minutes)leadTime: Total elapsed time including wait (in minutes)percentCompleteAccurate: Quality metric (0-100)queueSize: Number of items waitingbatchSize: Items processed together
Step Types Constants
// src/data/stepTypes.js
export const STEP_TYPES = {
PLANNING: 'planning',
DEVELOPMENT: 'development',
CODE_REVIEW: 'code_review',
TESTING: 'testing',
QA: 'qa',
STAGING: 'staging',
DEPLOYMENT: 'deployment',
MONITORING: 'monitoring',
CUSTOM: 'custom'
};
Node Component Template
// src/components/canvas/nodes/{StepTypeName}Node.jsx
import { Handle, Position } from 'reactflow';
import PropTypes from 'prop-types';
function {StepTypeName}Node({ data }) {
return (
<div
className="vsm-node vsm-node--{step-type}"
data-testid="vsm-node-{step-type}"
>
<Handle type="target" position={Position.Left} />
<div className="vsm-node__header">
<span className="vsm-node__icon">{/* Icon */}</span>
<span className="vsm-node__name">{data.name}</span>
</div>
<div className="vsm-node__metrics">
<div>PT: {data.processTime}m</div>
<div>LT: {data.leadTime}m</div>
<div>%C&A: {data.percentCompleteAccurate}%</div>
</div>
<Handle type="source" position={Position.Right} />
</div>
);
}
{StepTypeName}Node.propTypes = {
data: PropTypes.shape({
name: PropTypes.string.isRequired,
processTime: PropTypes.number.isRequired,
leadTime: PropTypes.number.isRequired,
percentCompleteAccurate: PropTypes.number.isRequired
}).isRequired
};
export default {StepTypeName}Node;
Example Feature File
Feature: Development Step Type
As a team mapping their value stream
I want to add development steps
So that I can capture coding work in my process
Scenario: Add a development step
Given I am editing a value stream map
When I select "Development" from the step type menu
And I enter "Backend API" as the step name
Then a development step should appear on the canvas
And it should have a code icon
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?