dev-workflows
NewAutomated development workflows for any project - security audits, coverage improvement, CI fixes, and spec validation. Supports Foundry/Solidity, Next.js, and more.
Overview
Universal automated development workflows for any project type - security audits, coverage improvement, CI fixes, and spec validation.
Overview
This Claude Code plugin provides essential development workflow commands that work across different project types. Whether you're building smart contracts with Foundry, web apps with Next.js, or any other project, these workflows help maintain code quality and automate repetitive tasks.
Supported Project Types
- •Foundry/Solidity: Smart contract development with security audits
- •Next.js/React: Frontend development with TypeScript support
- •General Projects: Any codebase with tests and CI/CD
Features
🔒 Security Audit (/audit)
- •Comprehensive code security analysis
- •Foundry: Smart contract vulnerability checks (reentrancy, access control, etc.)
- •Next.js: XSS, CSRF, API security, authentication issues
- •General: Common security anti-patterns
- •Automated audit report generation
📊 Code Review (/code-review)
- •Pull request code quality analysis
- •Security vulnerability detection
- •Best practices verification
- •Performance optimization suggestions
- •Framework-specific checks
🔧 CI Auto-Fix (/fix-ci)
- •Automatic CI failure diagnosis
- •Test failure resolution
- •Build error fixes
- •Formatting and linting corrections
- •Works with any test framework
🧪 Coverage Improvement (/improve-coverage)
- •Test coverage analysis
- •Automated test case generation
- •Edge case identification
- •Coverage report generation
- •Foundry:
forge coverage - •Next.js/Jest:
jest --coverage - •General: Auto-detect test framework
📋 Spec Validation (/check-spec-contradictions)
- •Specification consistency checking
- •Cross-file contradiction detection
- •Documentation gap identification
- •Ambiguity detection
🌐 Specification Translation (/translate-specs)
- •Automated translation of specification files to Japanese
- •Preserves technical accuracy and formatting
- •Maintains consistent terminology across documents
- •Outputs to
docs/ja/specs/structure - •Universal: Works with any markdown-based specifications
Installation
Add to Your Project
- Add Plugin Marketplace to your
.claude/settings.json:
{
"pluginMarketplaces": [
{
"name": "teliha-workflows",
"url": "https://github.com/teliha/dev-workflows"
}
],
"plugins": [
{
"name": "dev-workflows",
"marketplace": "teliha-workflows",
"enabled": true
}
]
}- Install via Claude Code:
# Interactive installation
/plugin
# Or direct installation
/plugin marketplace add https://github.com/teliha/dev-workflows
/plugin install dev-workflows@teliha-workflowsLocal Development/Testing
# Clone the plugin repository
git clone https://github.com/teliha/dev-workflows
# Add local marketplace
/plugin marketplace add ./dev-workflows
# Install from local
/plugin install dev-workflows@localUsage
Security Audit
Run a comprehensive security audit:
/auditFoundry Projects:
- •Analyzes all Solidity files in
src/ - •Checks for reentrancy, access control, integer overflow, etc.
- •Verifies DeFi integration patterns (EVK, Uniswap, etc.)
Next.js Projects:
- •Analyzes API routes, server components, middleware
- •Checks for XSS, CSRF, injection vulnerabilities
- •Reviews authentication/authorization logic
- •Validates environment variable usage
General Projects:
- •Code security best practices
- •Dependency vulnerability scanning
- •Common anti-patterns
Code Review
Review a pull request (run from PR branch):
/code-reviewProvides feedback on:
- •Security vulnerabilities
- •Code quality and maintainability
- •Performance optimization opportunities
- •Test coverage gaps
- •Framework-specific best practices
Fix CI Failures
Automatically diagnose and fix CI failures:
/fix-ciWorks with:
- •Foundry:
forge test,forge build,forge fmt - •Next.js:
npm test,npm run build,eslint,prettier - •General: Any CI framework
Improve Test Coverage
Add tests to improve coverage:
/improve-coverageFoundry:
forge coverage --report summaryNext.js/Jest:
npm run test:coverage
# or
jest --coverageVitest:
vitest --coverageCheck Specification Contradictions
Analyze specification files for inconsistencies:
/check-spec-contradictionsScans specs/, docs/, README.md for:
- •Contradictions between specs
- •Ambiguous requirements
- •Missing critical information
Translate Specifications to Japanese
Translate specification files to Japanese:
/translate-specsWhat it does:
- •Translates markdown files to Japanese (default:
specs/**/*.md) - •Outputs to
docs/ja/(preserves directory structure) - •Maintains technical term consistency
- •Preserves all code blocks and formatting
- •Creates a technical term glossary
Path Configuration:
The command uses environment variables (set by GitHub Actions workflow):
- •
TRANSLATE_SOURCE_PATH: Source file pattern (default:specs/**/*.md) - •
TRANSLATE_TARGET_BASE_PATH: Target base directory (default:docs/ja)
Examples:
Default behavior:
- •Source:
specs/vault-basics/spec.md→ Target:docs/ja/specs/vault-basics/spec.md
With custom paths (via workflow inputs):
- •Source:
docs/architecture.md→ Target:docs/ja/docs/architecture.md - •Source:
README.md→ Target:docs/ja/README.md
Translation guidelines:
- •Technical terms kept in English (with Japanese explanation)
- •Code blocks preserved exactly
- •Markdown formatting maintained
- •Consistent terminology across all files
Fix Lint Warning
Fix one important lint or static analysis warning:
/fix-lintSupported Languages:
- •TypeScript/JavaScript: ESLint, TypeScript compiler
- •Rust: Clippy warnings
- •Foundry/Solidity: Forge formatting, Solhint
Automatically:
- Detects project type
- Runs appropriate linter
- Fixes ONE important warning (prioritizes security > correctness > performance)
- Commits and pushes the fix
GitHub Actions Components
This plugin provides both reusable workflows and composite actions for automated CI/CD.
Component Categories
Universal Workflows (No build required):
- •Security Audit - Static code analysis
- •Code Review - PR review
- •Spec Check - Documentation analysis
Composite Actions (Requires build environment):
- •Auto Fix CI - You provide the build environment
- •Improve Coverage - You provide the build environment
- •Fix Lint Warning - You provide the build environment
Available Reusable Workflows
Universal workflow - Works with any project type without setup.
name: Security Audit
on:
schedule:
- cron: "0 3 * * 1" # Weekly
workflow_dispatch:
jobs:
audit:
uses: teliha/dev-workflows/.github/workflows/security-audit.yml@main
secrets:
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}Works with: All project types (Foundry, Next.js, Node.js, Python, etc.) Setup required: None - uses static analysis only
name: Code Review
on:
pull_request:
types: [opened, synchronize, ready_for_review]
jobs:
review:
if: github.event.pull_request.draft == false
uses: teliha/dev-workflows/.github/workflows/code-review.yml@main
with:
pr_number: ${{ github.event.pull_request.number }}
paths_filter: "src/**" # Customize for your project
secrets:
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}Paths filter examples:
- •Foundry:
src/**/*.sol - •Next.js:
src/**/*.{ts,tsx}orapp/** - •General:
**/*.{js,ts,py}
name: Spec Check
on:
push:
paths:
- 'specs/**'
- 'docs/**'
jobs:
check:
uses: teliha/dev-workflows/.github/workflows/spec-check.yml@main
with:
specs_directory: "specs/"
docs_directory: "docs/"
create_issue_on_findings: true
secrets:
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}Available Composite Actions
Composite actions let you control the build environment while leveraging Claude's automation.
Use when: You need custom build tools or dependencies for the audit.
For Foundry projects:
name: Security Audit
on:
push:
branches: [main]
schedule:
- cron: '0 0 * * 0'
permissions:
contents: read
issues: write
jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
# You provide the build environment
- uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- run: forge install
# Use the composite action
- uses: teliha/dev-workflows/.github/actions/security-audit@main
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
create_issue_on_critical: true
report_retention_days: 90For Node.js projects:
steps:
- uses: actions/checkout@v4
# You provide the build environment
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
# Use the composite action
- uses: teliha/dev-workflows/.github/actions/security-audit@main
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}Inputs:
- •
claude_code_oauth_token(required) - •
github_token(required) - •
create_issue_on_critical(optional, default:true) - •
report_retention_days(optional, default:90)
Universal action - works with any project type. You provide the build environment.
For Foundry projects:
name: Auto Fix CI
on:
workflow_run:
workflows: ["CI"]
types: [completed]
jobs:
auto-fix:
if: github.event.workflow_run.conclusion == 'failure'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_branch }}
# Setup your build environment
- uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- run: forge install
# Use the composite action
- uses: teliha/dev-workflows/.github/actions/fix-ci@main
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
failed_run_id: ${{ github.event.workflow_run.id }}
failed_branch: ${{ github.event.workflow_run.head_branch }}
pr_number: ${{ github.event.workflow_run.pull_requests[0].number }}For Node.js/Next.js projects:
name: Auto Fix CI
on:
workflow_run:
workflows: ["CI"]
types: [completed]
jobs:
auto-fix:
if: github.event.workflow_run.conclusion == 'failure'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_branch }}
# Setup your build environment
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm ci
# Use the composite action
- uses: teliha/dev-workflows/.github/actions/fix-ci@main
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
failed_run_id: ${{ github.event.workflow_run.id }}
failed_branch: ${{ github.event.workflow_run.head_branch }}
pr_number: ${{ github.event.workflow_run.pull_requests[0].number }}Universal action - works with any project type. You provide the build environment.
For Foundry projects:
name: Improve Coverage
on:
schedule:
- cron: "0 */8 * * *"
workflow_dispatch:
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# Setup your build environment
- uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- run: forge install
# Use the composite action
- uses: teliha/dev-workflows/.github/actions/improve-coverage@main
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
target_coverage_increase: "5"
base_branch: mainFor Node.js/Next.js projects:
name: Improve Coverage
on:
schedule:
- cron: "0 */8 * * *"
workflow_dispatch:
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# Setup your build environment
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm ci
# Use the composite action
- uses: teliha/dev-workflows/.github/actions/improve-coverage@main
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
target_coverage_increase: "5"
base_branch: mainUniversal action - works with any project type. You provide the build environment.
For Foundry projects:
name: Fix Lint
on:
schedule:
- cron: "0 4 * * *" # Daily at 4 AM
workflow_dispatch:
jobs:
fix-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup your build environment
- uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- run: forge install
# Use the composite action
- uses: teliha/dev-workflows/.github/actions/fix-lint@main
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
base_branch: mainFor TypeScript/Node.js projects:
name: Fix Lint
on:
schedule:
- cron: "0 4 * * *" # Daily at 4 AM
workflow_dispatch:
jobs:
fix-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup your build environment
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm ci
# Use the composite action
- uses: teliha/dev-workflows/.github/actions/fix-lint@main
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
base_branch: mainFor Rust projects:
name: Fix Lint
on:
schedule:
- cron: "0 4 * * *" # Daily at 4 AM
workflow_dispatch:
jobs:
fix-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup your build environment
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
# Use the composite action
- uses: teliha/dev-workflows/.github/actions/fix-lint@main
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
base_branch: mainFeatures:
- •Fixes ONE important lint warning per run
- •Prioritizes: Security > Correctness > Performance > Style
- •Creates focused, reviewable commits
- •Auto-detects: TypeScript/JavaScript (ESLint), Rust (Clippy), Solidity (Forge fmt)
name: Spec Check
on:
schedule:
- cron: "0 */8 * * *"
workflow_dispatch:
jobs:
check:
uses: teliha/dev-workflows/.github/workflows/spec-check.yml@main
with:
specs_directory: "specs/"
docs_directory: "docs/"
create_issue_on_findings: true
secrets:
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}Universal workflow - Translates specification files to Japanese.
name: Translate Specs
on:
push:
paths:
- 'specs/**/*.md'
workflow_dispatch:
jobs:
translate:
uses: teliha/dev-workflows/.github/workflows/translate-specs.yml@main
with:
source_path: 'specs/**/*.md'
target_base_path: 'docs/ja'
create_pr: true
secrets:
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}Inputs:
- •
source_path(optional, default:specs/**/*.md) - Pattern for files to translate - •
target_base_path(optional, default:docs/ja) - Base directory for translations - •
create_pr(optional, default:true) - Create PR with translations
What it does:
- •Translates all spec files matching the source pattern
- •Preserves directory structure under target path
- •Creates a glossary of technical terms
- •Opens a PR for review
Examples with custom paths:
Translate README and top-level docs:
with:
source_path: '{README.md,CONTRIBUTING.md}'
target_base_path: 'docs/ja'
# README.md → docs/ja/README.md
# CONTRIBUTING.md → docs/ja/CONTRIBUTING.mdTranslate all documentation:
with:
source_path: 'docs/**/*.md'
target_base_path: 'i18n/ja'
# docs/guide/intro.md → i18n/ja/docs/guide/intro.mdTranslate multiple directories:
with:
source_path: '{specs/**/*.md,docs/**/*.md}'
target_base_path: 'translations/ja'Project-Specific Configuration
Foundry/Solidity Projects
Create CLAUDE.md in your repository:
## Project Overview
Foundry-based DeFi protocol with EVK integration.
## Security Patterns
- All operators use `callThroughEVC` modifier
- EVC authentication required
- Health checks via `evc.requireAccountStatusCheck()`
## Testing
- Use `forge test` for unit tests
- Coverage: `forge coverage`
- Format: `forge fmt`Next.js Projects
Create CLAUDE.md:
## Project Overview
Next.js 14 app with App Router and TypeScript.
## Security Patterns
- API routes use authentication middleware
- Server actions validate input with Zod
- Environment variables properly scoped
## Testing
- Jest for unit tests
- Playwright for E2E
- Coverage: `npm run test:coverage`General Projects
Provide context in CLAUDE.md:
## Project Overview
[Brief description]
## Tech Stack
- Language: [TypeScript/Python/etc.]
- Framework: [Express/Django/etc.]
- Testing: [Jest/Pytest/etc.]
## Conventions
[Coding standards, patterns, etc.]Requirements
Common Requirements
- •Git repository
- •GitHub CLI (optional, for PR/issue management)
- •Project-specific tooling (see below)
Foundry Projects
- •Foundry
- •Solidity 0.8.x
Next.js Projects
- •Node.js 18+
- •npm/yarn/pnpm
- •TypeScript (recommended)
Permissions (GitHub Actions)
permissions:
contents: write
pull-requests: write
issues: write
id-token: writeCommands Reference
All slash commands automatically detect your project type and adapt accordingly.
| Command | Description | Setup Required |
|---|---|---|
/audit | Security audit (auto-detects: Solidity, Next.js, Node.js, general) | None |
/code-review | PR code review with best practices | None |
/fix-ci | Auto-fix CI failures (runs tests/build) | Project tools (forge/npm) |
/improve-coverage | Add tests to improve coverage (runs tests) | Project tools (forge/npm) |
/check-spec-contradictions | Find spec inconsistencies | None |
/translate-specs | Translate specs to Japanese (outputs to docs/ja/specs/) | None |
Analysis commands (/audit, /code-review, /check-spec-contradictions) work without any setup. Build commands (/fix-ci, /improve-coverage) require project build tools to be installed.
Skills
Audit Skill
Automatically activates for security-focused tasks:
- •Foundry: Solidity vulnerability patterns (reentrancy, access control, etc.)
- •Next.js: Web security (XSS, CSRF, API security)
- •General: OWASP Top 10, secure coding practices
Examples
Example 1: Security Audit (Universal - No Setup Required)
Local command:
/auditGitHub Actions:
jobs:
audit:
uses: teliha/dev-workflows/.github/workflows/security-audit.yml@main
secrets:
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}What it does:
- •Automatically detects project type (Foundry, Next.js, Node.js, etc.)
- •Performs static code analysis
- •Generates security audit report
- •No build tools required
Example 2: Auto-Fix CI Failures (Foundry)
GitHub Actions - Composite Action:
on:
workflow_run:
workflows: ["CI"]
types: [completed]
jobs:
auto-fix:
if: github.event.workflow_run.conclusion == 'failure'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# You setup your build environment
- uses: foundry-rs/foundry-toolchain@v1
- run: forge install
# Then use the action
- uses: teliha/dev-workflows/.github/actions/fix-ci@main
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
failed_run_id: ${{ github.event.workflow_run.id }}
failed_branch: ${{ github.event.workflow_run.head_branch }}What it does:
- •Analyzes CI failure logs
- •Fixes code issues using your build environment
- •Runs
forge fmt,forge build,forge test - •Creates PR with fixes
Example 3: Improve Coverage (Node.js)
GitHub Actions - Composite Action:
on:
schedule:
- cron: "0 */8 * * *"
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# You setup your build environment
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm ci
# Then use the action
- uses: teliha/dev-workflows/.github/actions/improve-coverage@main
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
target_coverage_increase: "5"What it does:
- •Analyzes test coverage using your build environment
- •Adds new test cases
- •Runs
npm test -- --coverage - •Creates PR with new tests
Contributing
Contributions welcome! To add support for new frameworks:
- Fork the repository
- Add framework-specific patterns to commands
- Update documentation
- Test with sample projects
- Submit pull request
Roadmap
- •[ ] Python/Django support
- •[ ] Rust/Cargo support
- •[ ] Go modules support
- •[ ] Framework auto-detection
- •[ ] Custom command templates
- •[ ] Integration with more CI providers
License
GPL-2.0-or-later
Support
- •Issues: GitHub Issues
- •Documentation: Claude Code Docs
Changelog
v1.0.0 (Initial Release)
- •Security audit command (Foundry, Next.js, general)
- •Code review command
- •CI auto-fix command
- •Coverage improvement command
- •Spec contradiction checking
- •Audit skill integration
- •Reusable GitHub Actions workflows
Install & Usage
mkdir -p .claude/skillsmkdir -p .claude/skills && curl -o .claude/skills/dev-workflows.md https://raw.githubusercontent.com/teliha/dev-workflows/main/SKILL.md/dev-workflowsFrequently Asked Questions
What is dev-workflows?
Automated development workflows for any project - security audits, coverage improvement, CI fixes, and spec validation. Supports Foundry/Solidity, Next.js, and more.
How to install dev-workflows?
To install dev-workflows, create the .claude/skills directory in your project, then run the curl command to download the skill file. Once installed, invoke it in Claude Code with /dev-workflows.
What is dev-workflows best for?
dev-workflows is a community categorized under General. It is designed for: security, ci-cd, automation, testing, code-review, foundry, nextjs, solidity. Created by PREX Trade Team.