agentleFS
CloudAI-XCloudAI-X/claude-workflow-v2/CLAUDE.md

claude-workflow-v2

CLAUDE.md1.4k starsChanged 11 months agoMITView on GitHub

Team-maintained workflow document. Update frequently with new learnings. Follow Conventional Commits: When working on this repo, leverage the plugin's own agents: Before pushing:

Trending

More talk lately.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 1 mentionFeb 2026: 1 mentionMar 2026: 0 mentionsApr 2026: 1 mentionMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 3 mentionsOct 2026: 5 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the CloudAI-X/claude-workflow-v2 repository that our weekly crawl found: only 11 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about CloudAI-X/claude-workflow-v2

The biggest 5 of 11 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 11

Talked about on GitHub and Bluesky (11 times).

On GitHub · 10

5 more on GitHub

On Bluesky · 1

The file

Show its rules and text

We split this CLAUDE.md into the rules it gives an agent

21 rules. About 0 are common, 13 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run claude plugin validate .

    line 16
  2. Distinctive:

    Check existing patterns in similar files

    line 17
  3. Distinctive:

    Test trigger keywords work as expected

    line 23
  4. Distinctive:

    Keep under 500 lines for optimal context usage

    line 26
  5. Very specific:

    Use ${CLAUDE_PLUGIN_ROOT} for paths

    line 32
  6. Distinctive:

    Test with both success and failure cases

    line 34
  7. Distinctive:

    Test the specific feature with Claude Code

    line 38
  8. Distinctive:

    Use YAML frontmatter for metadata

    line 44
  9. Distinctive:

    Read input from stdin as JSON

    line 51
  10. Distinctive:

    Use subprocess.run with timeout

    line 53
  11. Distinctive:

    When working on this repo, leverage the plugin's own agents:

    line 82
  12. Very specific:

    Check hooks/hooks.json matcher regex

    line 145
  13. Very specific:

    Verify script has executable permissions (chmod +x)

    line 146
  14. Very specific:

    Check Python path (#!/usr/bin/env python3)

    line 147
  15. Distinctive:

    Ensure "PROACTIVELY" is in description

    line 151
  16. Distinctive:

    Check trigger keywords are in user's prompt

    line 152
  17. Very specific:

    Verify model name is valid (opus/sonnet/haiku)

    line 153
  18. Very specific:

    Run claude plugin validate .

    line 157
  19. Distinctive:

    Check JSON syntax in all config files

    line 158
  20. Distinctive:

    Verify all referenced files exist

    line 159
  21. Very specific:

    All commands (output styles, inner-loop, verification) go in commands/ at root

    line 170

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Claude Code Development Guidelines

Team-maintained workflow document. Update frequently with new learnings.

Quick Reference

  • Plugin validation: claude plugin validate . && claude plugin validate .claude-plugin/plugin.json
  • Test locally: claude --plugin-dir ./
  • Formatting: Prettier for MD/JSON, Black for Python

Development Workflow

Making Changes

  1. Before editing any file:
    • Run claude plugin validate . && claude plugin validate .claude-plugin/plugin.json to ensure current state is valid
    • Check existing patterns in similar files
  2. When adding agents (agents/*.md):
    • Copy structure from agents/orchestrator.md as template
    • Include "PROACTIVELY" in description for auto-triggering
    • Specify tools, model (opus/sonnet/haiku), and skills
    • Test trigger keywords work as expected
  3. When adding skills (skills/*/SKILL.md):
    • Keep under 500 lines for optimal context usage
    • Include trigger keywords in description
    • Make content language-agnostic where possible
  4. When adding hooks (hooks/*):
    • Register in hooks/hooks.json
    • Use ${CLAUDE_PLUGIN_ROOT} for paths
    • Exit codes: 0 = allow, 2 = block with message
    • Test with both success and failure cases
  5. After all changes:
    • Run claude plugin validate . && claude plugin validate .claude-plugin/plugin.json
    • Test the specific feature with Claude Code

Code Conventions

Markdown Files

  • Use YAML frontmatter for metadata
  • Consistent heading hierarchy (# > ## > ###)
  • Code blocks with language specifiers

Python Hooks

  • Use #!/usr/bin/env python3 shebang
  • Read input from stdin as JSON
  • Handle all exceptions silently (don't block operations)
  • Use subprocess.run with timeout

JSON Files

  • 2-space indentation
  • No trailing commas
  • Validate syntax before committing

Git Workflow

Commit Messages

Follow Conventional Commits:

feat: add new agent for X
fix: correct hook exit code handling
docs: update README with new feature
chore: bump version to X.Y.Z

Branching

  • main is always deployable
  • Feature branches: feature/description
  • Bug fixes: fix/description

Available Agents (Use These!)

When working on this repo, leverage the plugin's own agents:

TaskAgent to Use
Multi-file changesorchestrator
Code quality checkcode-reviewer
Bug investigationdebugger
Update docsdocs-writer
Security reviewsecurity-auditor
Clean up coderefactorer
Add teststest-architect

Common Patterns

Hook Script Template

#!/usr/bin/env python3
import json
import sys

def main():
    try:
        input_data = json.load(sys.stdin)
        # Process input_data
        # Exit 0 to allow, exit 2 to block
        sys.exit(0)
    except Exception:
        sys.exit(0)  # Don't block on errors

if __name__ == '__main__':
    main()

Agent Definition Template

---
name: agent-name
description: What it does. Use PROACTIVELY when [triggers].
tools: Read, Write, Edit, Bash, Glob, Grep
model: sonnet
---

# Agent Name

[Instructions here]

Testing Checklist

Before pushing:

  • claude plugin validate . && claude plugin validate .claude-plugin/plugin.json passes
  • Tested feature manually with Claude Code
  • No hardcoded paths (use ${CLAUDE_PLUGIN_ROOT})
  • Hook scripts handle errors gracefully
  • CHANGELOG.md updated for user-facing changes

Troubleshooting

Hook not executing

  • Check hooks/hooks.json matcher regex
  • Verify script has executable permissions (chmod +x)
  • Check Python path (#!/usr/bin/env python3)

Agent not triggering

  • Ensure "PROACTIVELY" is in description
  • Check trigger keywords are in user's prompt
  • Verify model name is valid (opus/sonnet/haiku)

Validation failing

  • Run claude plugin validate . && claude plugin validate .claude-plugin/plugin.json for specific errors
  • Check JSON syntax in all config files
  • Verify all referenced files exist

Team Notes

<!-- Add learnings, gotchas, and tips here -->
  • The format-on-edit hook silently fails if formatter not installed (by design)
  • MCP permissions go in user's settings, not plugin
  • Commands are accessed via /project-starter:<command-name>
  • All commands (output styles, inner-loop, verification) go in commands/ at root
  • claude plugin validate needs a path: . checks the marketplace manifest only, .claude-plugin/plugin.json checks the plugin manifest and hooks/hooks.json
  • Hook output: on exit 0, plain stdout/stderr only reaches the debug log (except SessionStart and UserPromptSubmit, whose stdout goes to Claude). To tell Claude something without blocking, print JSON with hookSpecificOutput.additionalContext; to tell the user, print JSON with systemMessage; to block, exit 2 with the reason on stderr
  • Hooks never run npx <tool>: outside a TTY npx downloads whatever package has that name (npx tsc is not TypeScript). Resolve node_modules/.bin/<tool> or a binary on PATH instead
  • Quote argument-hint values (argument-hint: "[file]"); a bare [...] is a YAML list and strict loaders drop the command
  • Versions must agree in .claude-plugin/plugin.json, .claude-plugin/marketplace.json (twice), .codex-plugin/plugin.json, packages/add-skill/package.json and the latest CHANGELOG entry (CI checks this)
  • The npm installer registers hooks in .claude/settings.json by rewriting ${CLAUDE_PLUGIN_ROOT}/hooks/… from hooks/hooks.json; keep hook commands in that form

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.