agentleFS
AnthropicKnown publisheranthropics/claude-code-base-action/CLAUDE.md

claude-code-base-action

CLAUDE.md1k starsChanged 10 months agoMITView on GitHub

This is a GitHub Action that allows running Claude Code within GitHub workflows. The action consists of:

  • Reads credentials

2 other projects use a version of this.

Trending

More talk lately.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 1 mentionFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 3 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 4 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the anthropics/claude-code-base-action repository that our weekly crawl found: only 14 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about anthropics/claude-code-base-action

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

See all 14

Talked about on GitHub (14 times).

On GitHub · 14

9 more on GitHub
  • Other versions2 projects use a version of this.

    Word for word · 2

    1. anthropics/claude-code-action★ 9.8k100% same
    2. Najeebullah3124/awesome-claude-universe★ 2100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

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

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Test action locally: ./test-local.sh

    line 15
  2. Very specific:

    Test specific file: bun test test/prepare-prompt.test.ts

    line 16
  3. Very specific:

    Use act tool to run GitHub Actions workflows locally

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 26,980 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.md

Common Commands

Development Commands

  • Build/Type check: bun run typecheck
  • Format code: bun run format
  • Check formatting: bun run format:check
  • Run tests: bun test
  • Install dependencies: bun install

Action Testing

  • Test action locally: ./test-local.sh
  • Test specific file: bun test test/prepare-prompt.test.ts

Architecture Overview

This is a GitHub Action that allows running Claude Code within GitHub workflows. The action consists of:

Core Components

  1. Action Definition (action.yml): Defines inputs, outputs, and the composite action steps
  2. Prompt Preparation (src/index.ts): Runs Claude Code with specified arguments

Key Design Patterns

  • Uses Bun runtime for development and execution
  • JSON streaming output format for execution logs
  • Composite action pattern to orchestrate multiple steps
  • Provider-agnostic design supporting Anthropic API, AWS Bedrock, and Google Vertex AI

Provider Authentication

  1. Anthropic API (default): Requires API key via anthropic_api_key input
  2. AWS Bedrock: Uses OIDC authentication when use_bedrock: true
  3. Google Vertex AI: Uses OIDC authentication when use_vertex: true

Testing Strategy

Local Testing

  • Use act tool to run GitHub Actions workflows locally
  • test-local.sh script automates local testing setup
  • Requires ANTHROPIC_API_KEY environment variable

Test Structure

  • Unit tests for configuration logic
  • Integration tests for prompt preparation
  • Full workflow tests in .github/workflows/test-base-action.yml

Important Technical Details

  • Outputs execution logs as JSON to /tmp/claude-execution-output.json
  • Timeout enforcement via timeout command wrapper
  • Strict TypeScript configuration with Bun-specific settings

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.