@stillrivercode/shared-commands
v1.0.3
Published
Shared commands for AI-powered development workflows - includes issue analysis, spec creation, and roadmap management.
Readme
Shared Commands
This directory contains commands that can be shared between different AI assistants (Claude, Gemini, etc.) to provide consistent functionality across the project.
Prerequisites
Before using these commands, you must have the following software installed on your system:
- GitHub CLI (
gh): For interacting with the GitHub API. - jq: For processing JSON data.
Installation
You can install the shared commands using npm:
npm install -g @stillrivercode/shared-commandsOr you can use them directly with npx:
npx @stillrivercode/shared-commands <command> [options]Usage
Available Commands
analyze-issue: Analyzes existing GitHub issues for requirements and scope.create-spec-issue: Creates GitHub issue and detailed technical specifications in unified workflow.roadmap: Displays the latest project roadmap or generates a new one from a template.
Examples
# Analyze an existing GitHub issue
npx @stillrivercode/shared-commands analyze-issue --issue 25
# Create a technical specification issue
npx @stillrivercode/shared-commands create-spec-issue --title "User Authentication Architecture"
# Display or generate project roadmap
npx @stillrivercode/shared-commands roadmap
npx @stillrivercode/shared-commands roadmap --generate --input "New Feature A, Refactor B"AI Task Format Requirements
When creating issues that will be processed by AI workflows, the generated documents must follow specific formatting requirements for code blocks:
Code Block Format
All code blocks in issue descriptions and generated documentation must include file paths:
✅ CORRECT: `language filepath
❌ WRONG: `languageExamples
Correct format:
```javascript src/components/Login.js
export function Login() {
return <div>Login Component</div>;
}
```Incorrect format:
```javascript
export function Login() {
return <div>Login Component</div>;
}
```Why This Matters
- AI workflows require file paths to determine where to write code
- Issues without proper file paths in code blocks will fail AI processing
- The
create-spec-issuecommand templates have been updated to include file paths
Common Format Mistakes
❌ Missing file path:
```javascript
function example() {}
```✅ Correct format:
```javascript src/utils/example.js
function example() {}
```❌ Using relative path prefixes:
```javascript ./src/component.js
```✅ Use repository root paths:
```javascript src/component.js
```❌ Quoted file paths:
```javascript "src/component.js"
```✅ No quotes needed:
```javascript src/component.js
```Template Updates
The spec-template.md has been updated to include file paths in all code blocks:
- Mermaid diagrams:
docs/architecture-diagram.mmd - JSON examples:
docs/api-response-example.json - GraphQL schemas:
docs/schema.graphql - SQL migrations:
migrations/001_create_users_table.sql - Algorithm pseudocode:
docs/algorithms.txt
Development
To work on the shared commands, you can clone this repository and then run the commands
directly from the shared-commands directory:
# Analyze an issue
./commands/analyze-issue.sh --issue 25
# Create a spec issue
./commands/create-spec-issue.sh --title "User Authentication Architecture"
# Work with roadmap
./commands/roadmap.sh