From stepwise-core
Manages thoughts/ directory: initializes structure with hardlinks, syncs searchable/ for grep searches, generates git metadata for frontmatter. Use after creating/modifying research docs, plans, notes, or project init.
npx claudepluginhub nikeyes/stepwise-dev --plugin stepwise-coreThis skill is limited to using the following tools:
Manage the thoughts/ directory system for organizing research, plans, and notes with efficient searchable hardlinks.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Manage the thoughts/ directory system for organizing research, plans, and notes with efficient searchable hardlinks.
Use this Skill automatically in these situations:
thoughts/shared/research/thoughts/shared/plans/thoughts/Creates the complete thoughts/ directory structure in the current project.
When to use:
Command:
bash ${CLAUDE_PLUGIN_ROOT}/skills/thoughts-management/scripts/thoughts-init
What it does:
{username}/, shared/, searchable/.gitignore for searchable/ directorySynchronizes hardlinks in thoughts/searchable/ for efficient grep operations.
When to use:
Command:
bash ${CLAUDE_PLUGIN_ROOT}/skills/thoughts-management/scripts/thoughts-sync
What it does:
Important: Always run this after creating or modifying documents in thoughts/
Generates git and project metadata for document frontmatter.
When to use:
Command:
bash ${CLAUDE_PLUGIN_ROOT}/skills/thoughts-management/scripts/thoughts-metadata
Output format:
Current Date/Time (TZ): 2025-01-12 14:30:45 PST
ISO DateTime: 2025-01-12T14:30:45-0800
Date Short: 2025-01-12
Current Git Commit Hash: abc123def456
Current Branch Name: main
Repository Name: my-project
Git User: John Doe
Git Email: john@example.com
Timestamp For Filename: 2025-01-12_14-30-45
Use this metadata to populate:
/stepwise-dev:research_codebase commandthoughts/shared/research/bash ${CLAUDE_PLUGIN_ROOT}/skills/thoughts-management/scripts/thoughts-sync
/stepwise-dev:create_plan or /stepwise-dev:iterate_plan commandthoughts/shared/plans/bash ${CLAUDE_PLUGIN_ROOT}/skills/thoughts-management/scripts/thoughts-sync
bash ${CLAUDE_PLUGIN_ROOT}/skills/thoughts-management/scripts/thoughts-metadata
The thoughts/ system maintains this structure:
thoughts/
├── {username}/ # Personal notes (default: nikey_es)
│ ├── tickets/ # Ticket documentation
│ └── notes/ # Personal observations
├── shared/ # Team-shared documents
│ ├── research/ # Research documents
│ ├── plans/ # Implementation plans
│ └── prs/ # PR descriptions
└── searchable/ # Auto-generated hardlinks
└── [hardlinks to all .md files for fast grep]
thoughts-sync creates hardlinks, not copiessearchable/, always document paths by removing "searchable/"thoughts/searchable/nikey_es/notes/X.md → thoughts/nikey_es/notes/X.mdSet custom username (optional):
export THOUGHTS_USER=your_name
Default username: nikey_es
Cause: Files were deleted from thoughts/ but hardlinks remain in searchable/
Solution: The script automatically cleans them up. No action needed.
Cause: Not in a git repository or git not available
Solution: Ensure you're in a git repository. For testing, the script provides fallback values.
Cause: Scripts are not executable
Solution: Run chmod:
chmod +x ${CLAUDE_PLUGIN_ROOT}/skills/thoughts-management/scripts/*
All scripts are located in: ${CLAUDE_PLUGIN_ROOT}/skills/thoughts-management/scripts/
| Script | Purpose | When to use |
|---|---|---|
thoughts-init | Initialize directory structure | Once per project |
thoughts-sync | Synchronize hardlinks | After every document change |
thoughts-metadata | Generate git metadata | Before creating frontmatter |
The following slash commands automatically use this Skill:
/stepwise-dev:research_codebase - Uses thoughts-metadata and thoughts-sync/stepwise-dev:create_plan - Uses thoughts-metadata and thoughts-sync/stepwise-dev:iterate_plan - Uses thoughts-sync/stepwise-dev:implement_plan - Uses thoughts-sync/stepwise-dev:validate_plan - Uses thoughts-syncThese commands will automatically invoke the appropriate scripts when needed.