Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Claude for Open Source (claude-for-oss / cfo)

Make any open-source repo agent-ready: generate and keep fresh an orientation pack so Claude Code, Cursor, OpenCode, Cline, and friends discover stack, commands, and layout without thrashing.

This is not another coding agent. It is a context + contribution map you commit to the repo.

agent-oriented Claude-ready CI

Quick start

# one-shot
npx -y --package=github:Duc-python/claude-for-oss#main cfo init
npx -y --package=github:Duc-python/claude-for-oss#main cfo check

# global install
npm install -g github:Duc-python/claude-for-oss#main
cfo init
cfo refresh
cfo check
cfo pr   # requires GitHub CLI (`gh`)

Orientation pack

Path Purpose
AGENTS.md Stack, commands, where to look
CLAUDE.md Pointer for Claude Code
docs/agent/architecture.md Module map
docs/agent/blast-radius.md Heuristic dependency hints
docs/agent/pack.meta.json Structure hash for freshness
.github/GOOD_FIRST_AGENT.md Issue template for agent-friendly work
.claude/skills/orient/SKILL.md /orient skill
.claude/skills/find-test/SKILL.md /find-test skill

Schema: schema/pack.schema.json.

CLI

cfo init [-C path] [--dry-run] [--no-claude-md]
cfo refresh [-C path] [--force] [--dry-run]
cfo check [-C path] [--json]          # exit 1 if stale
cfo pr [-C path] [--draft] [--base main]

GitHub Action

Fail CI when the pack is missing or stale (for example after package.json or layout changes):

- uses: actions/checkout@v4
- uses: Duc-python/claude-for-oss/action/check@main
  with:
    path: "."
    refresh-on-stale: "false"

Example workflow: .github/workflows/orientation-check.yml.

Validation

npm run validate

Measures a discovery-cost proxy before/after pack generation on 10 fixtures (gate: ≥30% reduction on ≥6/10) and surveys popular public repos for existing AGENTS.md / CLAUDE.md.

Develop

npm install
npm run build
npm test
npm run cfo -- init --dry-run

Requires Node.js ≥ 18. See CONTRIBUTING.md.

Adoption

License

MIT

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages