Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ on:
branches: [main]
paths:
- "flowctl/**"
- "scripts/**"
- "hooks/**"
- ".github/workflows/ci.yml"
pull_request:
branches: [main]
paths:
- "flowctl/**"
- "scripts/**"
- "hooks/**"
- ".github/workflows/ci.yml"

env:
Expand All @@ -25,6 +29,20 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install shellcheck
working-directory: .
run: sudo apt-get install -y shellcheck

- name: Lint shell scripts
working-directory: .
run: shellcheck scripts/*.sh scripts/hooks/*.sh flowctl/install.sh
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shellcheck linting in CI doesn't include the new smoke tests under scripts/tests/test_*.sh, so regressions there won't be caught. Consider expanding the glob to include scripts/tests/*.sh (and any nested scripts) so all committed shell scripts are linted.

Suggested change
run: shellcheck scripts/*.sh scripts/hooks/*.sh flowctl/install.sh
run: |
find scripts hooks -type f -name '*.sh' -print0 | xargs -0 shellcheck flowctl/install.sh

Copilot uses AI. Check for mistakes.

- name: Validate JSON configs
working-directory: .
run: |
python3 -c "import json; json.load(open('hooks/hooks.json'))"
python3 -c "import json; json.load(open('.claude-plugin/plugin.json'))"

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
Expand Down Expand Up @@ -53,6 +71,40 @@ jobs:
- name: Clippy
run: cargo clippy --all-targets -- -D warnings

- name: Audit dependencies
run: cargo install cargo-audit && cargo audit

integration:
name: Shell Integration Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Cache cargo registry & build
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
flowctl/target
key: ${{ runner.os }}-cargo-integration-${{ hashFiles('flowctl/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-integration-

- name: Build flowctl
run: cd flowctl && cargo build --release

- name: Configure git for tests
run: |
git config --global user.email "ci@test.local"
git config --global user.name "CI Test"

- name: Run shell integration tests
run: bash scripts/tests/run_all.sh

coverage:
name: Test Coverage
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .shellcheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
shell=bash
7 changes: 5 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ commands/flow-code/*.md → Slash command definitions (user-invocable entry poi
skills/*/SKILL.md → Skill implementations (loaded by Skill tool, never Read directly)
agents/*.md → Subagent definitions (research scouts, worker, plan-sync, etc.)
bin/flowctl → Rust binary (built from flowctl/ workspace)
flowctl/ → Rust Cargo workspace (3 crates: core, db, cli)
flowctl/ → Rust Cargo workspace (4 crates: core, db, service, cli)
hooks/hooks.json → Ralph workflow guards (active when FLOW_RALPH=1)
docs/ → Architecture docs, CI examples
```

**Skills**: 8 core + 16 extensions. See `docs/skills.md` for the full classification. Core workflow: plan → plan-review → work → impl-review → epic-review.
**Skills**: 8 core + 22 extensions. See `docs/skills.md` for the full classification. Core workflow: `flow-code-run` (unified phase loop) or individual skills: plan → plan-review → work → impl-review → epic-review.

**Key invariant**: The `bin/flowctl` Rust binary is the single source of truth for `.flow/` state. Always invoke as:
```bash
Expand All @@ -28,6 +28,9 @@ $FLOWCTL <command>

## Primary Workflow

**Unified entry point** (preferred): `/flow-code:run "description"` — drives the entire pipeline (plan → plan-review → work → impl-review → close) via `flowctl phase next/done`. One command, zero manual phase transitions.

Individual phase commands (deprecated, still functional):
1. `/flow-code:plan "description"` → creates epic + tasks in `.flow/`
2. `/flow-code:plan-review` → Carmack-level review via RepoPrompt or Codex
3. `/flow-code:work <epic-id>` → executes tasks with Teams mode (auto-parallel with file locking)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](../../LICENSE)
[![Claude Code](https://img.shields.io/badge/Claude_Code-Plugin-blueviolet)](https://claude.ai/code)

[![Version](https://img.shields.io/badge/Version-0.1.27-green)](../../CHANGELOG.md)
[![Version](https://img.shields.io/badge/Version-0.1.31-green)](https://github.com/z23cc/flow-code/releases)

[![Status](https://img.shields.io/badge/Status-Active_Development-brightgreen)](../../CHANGELOG.md)
[![Status](https://img.shields.io/badge/Status-Active_Development-brightgreen)](https://github.com/z23cc/flow-code/releases)

**A production-grade harness for Claude Code. Full-auto development from idea to PR.**

Expand Down
12 changes: 12 additions & 0 deletions commands/flow-code/run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: run
description: Unified pipeline entry point for plan-first development
---

# IMPORTANT: This command MUST invoke the skill flow-code-run

The ONLY purpose of this command is to call the flow-code-run skill. You MUST use that skill now.

**User request:** $ARGUMENTS

Pass the user request to the skill. The skill handles all pipeline logic.
Loading
Loading