agentleFS
Microsoft AzureKnown publisherAzure/cosmos-explorer/.github/skills/build/SKILL.md

build

Skill131 starsChanged 7 months agoMITView on GitHub

Build the Cosmos Explorer project. Use this skill when asked to build, compile, or check the build status of the project.

  • Installs packages

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

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 7 are distinctive, and 9 are very specific to this project.

  • 0

    Common

    Most of the 71 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the following commands to build the Cosmos Explorer project.

    line 9
  2. Distinctive:

    Run a complete production build (format check → lint → compile → strict compile → webpack prod → copy):

    line 13
  3. Distinctive:

    Run a CI build that uses webpack dev mode for faster bundling:

    line 21
  4. Distinctive:

    Run a TypeScript type-check without emitting output:

    line 29
  5. Very specific:

    Run a strict null-checks compile on the subset of files in tsconfig.strict.json:

    line 37
  6. Very specific:

    Run ESLint across all .ts and .tsx files:

    line 45
  7. Distinctive:

    Run Prettier to verify formatting without modifying files:

    line 53
  8. Very specific:

    Before running any build command, check whether npm install needs to be run.

    line 61
  9. Very specific:

    Check if the node_modules directory exists.

    line 63
  10. Very specific:

    If node_modules exists, check whether package.json or package-lock.json have been modified more recently than node_modules.

    line 64
  11. Distinctive:

    Always run this check before proceeding with any build command.

    line 83
  12. Very specific:

    When asked to simply "build", run npm run build for a full production build.

    line 87
  13. Very specific:

    When asked for a quick or fast build, use npm run build:ci.

    line 88
  14. Very specific:

    When asked to just check types, use npm run compile.

    line 89
  15. Distinctive:

    If the build fails, read the error output carefully.

    line 90
  16. Very specific:

    Format errors: Run npm run format to auto-fix formatting, then retry the build.

    line 94

“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

Build Skill

Use the following commands to build the Cosmos Explorer project. Choose the appropriate command based on the task.

Full Production Build

Run a complete production build (format check → lint → compile → strict compile → webpack prod → copy):

npm run build

CI Build (Faster)

Run a CI build that uses webpack dev mode for faster bundling:

npm run build:ci

TypeScript Compile Only

Run a TypeScript type-check without emitting output:

npm run compile

Strict TypeScript Compile

Run a strict null-checks compile on the subset of files in tsconfig.strict.json:

npm run compile:strict

Lint Only

Run ESLint across all .ts and .tsx files:

npm run lint

Format Check

Run Prettier to verify formatting without modifying files:

npm run format:check

Pre-Build: Check Dependencies

Before running any build command, check whether npm install needs to be run. Do this by comparing package.json and package-lock.json against the installed node_modules:

  1. Check if the node_modules directory exists. If it does not, run npm install.
  2. If node_modules exists, check whether package.json or package-lock.json have been modified more recently than node_modules. If so, run npm install.
# Check if node_modules is missing or outdated
if [ ! -d node_modules ] || [ package.json -nt node_modules ] || [ package-lock.json -nt node_modules ]; then
  npm install
fi

On Windows PowerShell:

if (-not (Test-Path node_modules) -or
    (Get-Item package.json).LastWriteTime -gt (Get-Item node_modules).LastWriteTime -or
    (Get-Item package-lock.json).LastWriteTime -gt (Get-Item node_modules).LastWriteTime) {
    npm install
}

Always run this check before proceeding with any build command.

Guidelines

  • When asked to simply "build", run npm run build for a full production build.
  • When asked for a quick or fast build, use npm run build:ci.
  • When asked to just check types, use npm run compile.
  • If the build fails, read the error output carefully. Common issues include:
    • TypeScript errors: Fix type errors shown in the npm run compile output.
    • Strict null-check errors: Fix strict errors shown in npm run compile:strict output.
    • Lint errors: Fix lint issues shown in npm run lint output.
    • Format errors: Run npm run format to auto-fix formatting, then retry the build.
  • New files must be added to tsconfig.strict.json so they compile under strict mode.

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.