agentleFS
pavel-molyanovpavel-molyanov/molyanov-ai-dev/skills/infrastructure-setup/SKILL.md

infrastructure-setup

Skill299 starsChanged 11 days agoMITView on GitHub

Infrastructure conventions and review criteria: local setup, Docker, Git hooks, CI/CD, deployment, release artifacts, monitoring, backups, and recovery. Use whenever infrastructure is set up, changed, deployed, or assessed, including preparing a deploy, publishing a build or extension, and adding a health check or alert. Application tests without an infrastructure change use test-master.

  • Reads credentials

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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. Distinctive:

    Do not implement an improvement outside the user's request merely because it is beneficial.

    line 22
  2. Distinctive:

    Treat a rare or unagreed operational scenario as a user decision even when its correction looks local.

    line 27
  3. Very specific:

    Keep those facts current through documentation-writing when an infrastructure change alters them.

    line 38
  4. Distinctive:

    Do not introduce Docker, a server, a hook, or an environment merely because the skill covers it.

    line 46
  5. Distinctive:

    When Docker is used, exclude secrets from the build context and image layers and give the final container only the privileges it needs.

    line 50
  6. Very specific:

    Keep secrets out of Git and command output.

    line 52
  7. Very specific:

    Use a fresh infrastructure-reviewer for an explicit review of current infrastructure or a change that materially affects production …

    line 79
  8. Distinctive:

    After the reviewer returns, apply no finding and do not repeat the review automatically.

    line 88

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

Infrastructure Conventions

Scope and Judgment

  • Project Knowledge is required infrastructure context. If it is absent, stop and ask the user to create or fill it before continuing.
  • The user's request defines which changes are authorized. A request to inspect, review, or assess current infrastructure authorizes diagnosis and recommendations, not implementation.
  • Existing architecture and Project Knowledge are the current contract, not proof that the setup is good. Report demonstrated defects, unnecessary complexity, unsafe behavior, operational risks, and worthwhile improvements instead of silently accepting them.
  • Do not implement an improvement outside the user's request merely because it is beneficial. Explain the evidence, impact, and proposed direction, then obtain agreement before changing it.
  • Discuss the situation with the user when material information is missing or contradictory, an action can affect production, users, data, secrets, or neighboring projects, the safe result is uncertain, the current setup appears wrong, or the intended response expands the request.
  • Treat a rare or unagreed operational scenario as a user decision even when its correction looks local. Ask before adding or changing delivery, recovery, monitoring, isolation, persistent state, infrastructure entities, dependencies, architecture, or material complexity.
  • Apply only the topic rules relevant to the request; these are conventions, not a required setup sequence.

Project-Specific Ownership

  • Concrete hosts, platforms, users, paths, ports, service names, deployment triggers, direct-access policy, agent or operations host, monitoring location, notification route, backup destinations, and emergency recovery facts belong in Project Knowledge's deployment owner.
  • Keep those facts current through documentation-writing when an infrastructure change alters them. Do not copy private project facts into this global skill or another public methodology file.
  • Project-specific decisions override the generic patterns here. If a documented choice is risky or no longer fits reality, report it and discuss a change rather than overriding it silently.

Repository and Runtime Rules

  • Do not introduce Docker, a server, a hook, or an environment merely because the skill covers it.
  • Git pre-commit uses gitleaks for secret scanning and may add only fast staged-file lint or format checks. Full test suites and builds belong in CI. Test a secret-like fixture only in a disposable repository so it never enters the project's index, history, or reflog.
  • When Docker is used, exclude secrets from the build context and image layers and give the final container only the privileges it needs.
  • Keep secrets out of Git and command output. Local values belong in ignored .env or protected config files; CI values belong in its secret store; runtime-only values belong in a protected target-side file or secret store. Keep a value-free .env.example when configuration names need documenting.
  • Give project-owned ephemeral resources such as logs, caches, obsolete images, deployment bundles, temporary builds, and CI artifacts a bounded retention or size policy. Backups need retention that preserves current recovery needs and a verified restore path. Do not invent an expiry for persistent application data or clean another project's resources.

Topic Rules

For a persistent service or deployment assessment, apply deployment.md — delivery model, shared-host placement, environments, production safety, rollback, and runtime verification.

For downloadable builds, browser extensions, packages, or CLIs, apply release-artifacts.md — verified artifacts, retention, and the manual Chrome Web Store boundary.

For health checks, timers, alerts, or monitoring assessment, apply monitoring-and-alerting.md — control-host placement, incident behavior, notification routing, installation, and drills.

Verification and Review

  • Match implementation verification to the changed boundary: container, workflow, artifact, timer, recovery path, or user-facing service behavior. Do not replay unrelated checks.
  • Use a fresh infrastructure-reviewer for an explicit review of current infrastructure or a change that materially affects production delivery, secrets, environment isolation, release publication, recovery, retention, monitoring, or shared-host boundaries. A trivial local or formatting-only change whose result is fully established by direct verification does not need a dedicated review. Supply the requested review boundary, relevant existing infrastructure, Project Knowledge, applicable topic references, available runtime evidence, and, for completed work, a short explanation of what changed, how the operational result works, why this approach was chosen, deliberate limits, and assumptions. Include reviewers required by other active skills in the same review stage.
  • After the reviewer returns, apply no finding and do not repeat the review automatically. Explain what you changed and how the operational result works, then what the reviewer found, what it can cause, whether you agree and why, and what you recommend. Surface critical production, security, or data-loss risks even when you disagree, and wait for the user's approval before editing. After an approved infrastructure change, verify the affected boundary directly and refresh durable Project Knowledge facts.

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.