agentleFS
revizahoshii-norevizahoshii-no/agent-skill-project/skills/clean-build-runtime/SKILL.md

clean-build-runtime

Skill1 starsChanged 25 days agoMITView on GitHub

Build and repair APIs, backends, bots, scripts, and command-line tools without guessed library calls, unsafe live actions, hidden failures, or careless dependency and secret handling.

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈24

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not use it for a browser-only visual change.

    line 15
  2. Distinctive:

    start, build, syntax, lint, and test commands.

    line 23
  3. Distinctive:

    Read installed source, generated types, built-in help, or current official documentation before relying on a library call that is not …

    line 28
  4. Distinctive:

    Add a dependency only when the requested behavior justifies it.

    line 32
  5. Distinctive:

    Verify the exact package name, maintained version, license, and runtime compatibility before installation.

    line 33
  6. Distinctive:

    Treat packages with native compilation as deployment risks and test installation in a clean environment when they are necessary.

    line 35
  7. Distinctive:

    Keep optional non-core integrations lazy or isolated so their failure does not stop the primary process.

    line 36
  8. Distinctive:

    Do not execute installers from unknown sources or pipe remote scripts directly into a shell.

    line 37
  9. Distinctive:

    Treat account, chat, participant, and message identifiers as opaque platform values.

    line 41
  10. Distinctive:

    Check permissions, target validity, self-targeting, owner protection, and chat type before destructive moderation or messaging actions.

    line 43
  11. Distinctive:

    Do not test against real accounts, groups, phone numbers, or recipients without explicit permission.

    line 44
  12. Distinctive:

    Use mocked events and sockets for routine behavior tests.

    line 45
  13. Distinctive:

    Keep response format and persona consistent without exposing implementation details.

    line 46
  14. Distinctive:

    Use parameterized data access and bounded queries.

    line 52
  15. Distinctive:

    Keep migrations reversible when possible and test them against a copy of data.

    line 54
  16. Distinctive:

    Do not log credentials, session material, personal data, or full sensitive payloads.

    line 56
  17. Distinctive:

    Never place tokens, keys, session material, or passwords in source, examples, logs, screenshots, or reports.

    line 61
  18. Distinctive:

    Keep safe defaults explicit and separate from secret values.

    line 63
  19. Distinctive:

    Ask before rotating, deleting, or transmitting credentials.

    line 64
  20. Distinctive:

    Read the exact error and relevant logs.

    line 68
  21. Distinctive:

    After two failed fixes, stop speculative changes and identify the evidence still needed.

    line 75
  22. Distinctive:

    Do not swallow exceptions or convert every failure into success.

    line 79
  23. Distinctive:

    Keep retry behavior bounded and observable.

    line 81
  24. Distinctive:

    Remove temporary logs and debug switches before delivery.

    line 82

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

Clean Build Runtime

Use when

  • building or changing an API, backend service, messaging bot, worker, automation, script, or command-line tool;
  • library behavior, platform identifiers, permissions, external side effects, native dependencies, or secrets create material risk;
  • a runtime defect needs reproduction and causal repair.

Do not use it for a browser-only visual change.

Verify the runtime contract

Before implementation, identify:

  • runtime and target version;
  • package manager and lockfile;
  • start, build, syntax, lint, and test commands;
  • deployment environment and native build limits;
  • external services, permissions, rate limits, and side effects;
  • data that can be safely used for testing.

Read installed source, generated types, built-in help, or current official documentation before relying on a library call that is not already proven in the project.

Dependency safety

  • Add a dependency only when the requested behavior justifies it.
  • Verify the exact package name, maintained version, license, and runtime compatibility before installation.
  • Pin versions through the project's lock mechanism.
  • Treat packages with native compilation as deployment risks and test installation in a clean environment when they are necessary.
  • Keep optional non-core integrations lazy or isolated so their failure does not stop the primary process.
  • Do not execute installers from unknown sources or pipe remote scripts directly into a shell.

Bot and messaging boundaries

  • Treat account, chat, participant, and message identifiers as opaque platform values.
  • Resolve identity through the project's existing helper or platform contract instead of raw string assumptions.
  • Check permissions, target validity, self-targeting, owner protection, and chat type before destructive moderation or messaging actions.
  • Do not test against real accounts, groups, phone numbers, or recipients without explicit permission.
  • Use mocked events and sockets for routine behavior tests.
  • Keep response format and persona consistent without exposing implementation details.

API and backend boundaries

  • Validate and normalize input at the boundary.
  • Enforce authentication and authorization separately.
  • Use parameterized data access and bounded queries.
  • Return deliberate status codes and stable error shapes.
  • Keep migrations reversible when possible and test them against a copy of data.
  • Protect retries, queues, and webhooks from duplicate side effects.
  • Do not log credentials, session material, personal data, or full sensitive payloads.

Secrets and configuration

  • Load secrets from the approved environment or ignored credential store.
  • Never place tokens, keys, session material, or passwords in source, examples, logs, screenshots, or reports.
  • Fail clearly when required configuration is absent.
  • Keep safe defaults explicit and separate from secret values.
  • Ask before rotating, deleting, or transmitting credentials.

Defect repair

  1. Read the exact error and relevant logs.
  2. Reproduce the failure under controlled input.
  3. Trace the failure to a boundary, state transition, dependency, or contract.
  4. Apply the smallest causal repair.
  5. Repeat the original reproduction.
  6. Exercise a nearby success and failure path for regression risk.

After two failed fixes, stop speculative changes and identify the evidence still needed.

Failure integrity

  • Do not swallow exceptions or convert every failure into success.
  • Distinguish expected input errors, external service errors, and internal defects.
  • Keep retry behavior bounded and observable.
  • Remove temporary logs and debug switches before delivery.
  • Preserve process health when an optional feature fails, but do not hide the failure.

Evidence

A valid runtime report includes:

Runtime and version:
Installed contract inspected:
Inputs and side effects tested:
Permission and destructive guards:
Success and failure paths:
Clean installation or build result:
Known environmental limits:

Human documentation: ../../docs/guides/clean-build-runtime.md.

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.