agentleFS
v0idOSv0idOS/performance-deity/skills/build/SKILL.md

build

Skill2 starsChanged 7 months agoMITView on GitHub

Reduce CI/CD build times. Analyzes Dockerfiles, Webpack/Vite configs, and GitHub Actions workflows to identify the slowest step and apply targeted caching and build optimizations.

76 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use incident, experiment and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • pvnarpSkill

    incident

    Guides incident response and post-mortem analysis. Covers triage, mitigation, root cause analysis, and prevention. Use when responding to active incidents, writing post-mortems, or improving incident processes.

    Also in 3 projects that use this

  • sunnnybalaSkill

    experiment

    Design and run ML experiments on cloud GPUs. Generates experiment code, runs on Modal, tracks results in JSONL. Use when asked to "run experiments", "train a model", "test this hypothesis", or "benchmark this approach". Proactively invoke when the user has a refined research idea and needs to validate it experimentally.

    Also in 3 projects that use this

  • SentrySkill

    spec

    Produce a verified spec — problem, desired outcome, and acceptance criteria — before building. Use when given a GitHub/Linear issue link, when starting from a fuzzy in-conversation idea, or asked to "figure out what to do" / "scope this" / "what should I build" — whenever the *what* isn't yet pinned down. Grills the ambiguities, checks the premise against the code, and produces acceptance criteria you sign off on — then hands to design-first.

    Also in 9 projects that use this

  • AnthropicSkill

    brief

    Generate contextual briefings for legal work — daily summary, topic research, or incident response. Use when starting your day and need a scan of legal-relevant items across email, calendar, and contracts, when researching a specific legal question across internal sources, or when a developing situation (data breach, litigation threat, regulatory inquiry) needs rapid context.

    Also in 5 projects that use this

  • AnasX7Skill

    improve

    Survey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on source code — never implements, fixes, or refactors anything itself. Use when asked to audit a codebase, find improvement opportunities (bugs, security, performance, test coverage, tech debt, migrations, DX), suggest features or where to take the project next (roadmap, product direction), or generate handoff plans for another agent to implement.

    Also in 4 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 17 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 71 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Use multi-stage builds: compile in a full image, copy only the output artifact into a minimal runtime image (e.g.

    line 20
  2. Very specific:

    Add concurrency: groups to cancel in-progress runs on force-push.

    line 30

“Common” is measured: kept by at least 6 in 10 of the 71 edited versions of this file we could read. “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
SKILL.md

Execute all three phases in order.

Phase 1 — Bottleneck

Analyze whichever config file applies:

  • Dockerfile
  • webpack.config.js / vite.config.ts
  • .github/workflows/*.yml

Identify the single step that consumes the most wall-clock time.

Phase 2 — Fix

Docker:

  • Reorder layers: least-changing first (OS deps, runtime), most-changing last (app code).
  • Use multi-stage builds: compile in a full image, copy only the output artifact into a minimal runtime image (e.g. alpine).

Webpack / Vite:

  • Enable code splitting and tree-shaking.
  • Enable TerserPlugin with parallel: true.
  • Set cache: { type: 'filesystem' } for persistent build caching.

GitHub Actions:

  • Cache node_modules using actions/cache keyed on the hash of package-lock.json.
  • Cache pip packages keyed on the hash of requirements.txt.
  • Add concurrency: groups to cancel in-progress runs on force-push.

Phase 3 — Report

State: "This change will save approximately X minutes per PR run" with explicit reasoning.

StepBeforeAfterSaved
Dependency installXminYminZmin
Build / compileXminYminZmin
Total pipelineXminYminZmin

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.