infrastructure-setup
Skill4 starsChanged 29 days agoMITView on GitHub
[METHODOLOGY] Dev infrastructure setup (framework init, folder structure, Docker, pre-commit hooks with gitleaks, testing infrastructure, .gitignore). Preloaded by dev-devops-engineer agent.
- Reads credentials
2 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- pavel-molyanov/molyanov-ai-devtheir own version, first seen Oct 25, 2026
- stepanenkoviktor0110-boop/ai-dev-methodologyedited, first seen May 31, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- stepanenkoviktor0110-boop/ai-dev-methodology★ 277% same
Wrote their own version · 1
- pavel-molyanov/molyanov-ai-dev★ 299same name
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.
In this repository48 other files it gives its agents.
- skills/dev-methodology/references/agents.mdAGENTS.md
- skills/skill-authoring/references/agents.mdAGENTS.md
- acceptance-protocolSkill
- agency-intakeSkill
- ai-visibility-methodologySkill
- banner-design-guideSkill
- benchmark-researchSkill
- brand-methodologySkill
- code-reviewingSkill
- code-writingSkill
- codex-bridgeSkill
- deploy-pipelineSkill
- design-assets-guideSkill
- design-system-methodologySkill
- design-task-decompositionSkill
- dev-methodologySkill
- docs-pipelineSkill
- documentation-writingSkill
- engagement-contractSkill
- engagement-protocolSkill
- feature-researchSkill
- human-voiceSkill
- marketing-task-decompositionSkill
- post-deploy-qaSkill
- pre-deploy-qaSkill
- presentation-designSkill
- project-planningSkill
- prompt-engineeringSkill
- security-auditingSkill
- semantic-drift-methodologySkill
- seo-auditingSkill
- skill-authoringSkill
- skill-test-designSkill
- skill-testingSkill
- system-optimization-protocolSkill
- task-decompositionSkill
- tech-spec-planningSkill
- testing-methodologySkill
- ui-styling-guideSkill
- ui-ux-methodologySkill
- user-spec-planningSkill
- validation-pipelineSkill
- yandex-analytics-methodologySkill
- yandex-direct-guideSkill
- yandex-metrika-guideSkill
- yandex-search-guideSkill
- yandex-webmaster-guideSkill
- yandex-wordstat-guideSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 28
Read them from the brief's §Infrastructure: {ENG}/specs/project-brief.md, in the canonical engagement directory your prompt names, not in …
- Very specific: line 47
Add src/prompts/ if project uses LLM prompts.
- Very specific: line 54
Start .dockerignore from ~/.claude/shared/templates/infrastructure/static/.dockerignore and trim it to the stack.
- Very specific: line 71
Add framework-specific patterns from architecture.md.
- Very specific: line 72
Create .env.example with required variable names (no values).
- Very specific: line 89
Checkpoint: commit a file containing AKIA1234567890EXAMPLE — gitleaks blocks it.
- Distinctive: line 97
Checkpoint: test command passes.
- Distinctive: line 101
Update project-knowledge references (append, don't overwrite):
- Distinctive: line 105
Commit (outside an engagement only.
- Very specific: line 118
Verify before commit: git status shows no .env files (only .env.example).
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Infrastructure Setup
Gathering Project Context
Read project-knowledge references:
.claude/skills/project-knowledge/references/architecture.md— tech stack, framework.claude/skills/project-knowledge/references/patterns.md— code conventions, branching strategy, testing.claude/skills/project-knowledge/references/deployment.md— deployment strategy
If files lack needed info, search other project-knowledge references — info may exist under different names. Inside an engagement you cannot reach the user: if a fact is missing entirely, take the convention below, write it into the relevant doc as a decision with its reason, and list it in your report.
Autonomous decisions (based on project-knowledge):
- Framework init commands, folder structure, test framework, .gitignore patterns
Decided before the engagement (the user answered these in the bootstrap interview):
- Docker: needed? Local dev, production, or both?
- Pre-commit strictness: gitleaks only, or add lint/format?
Read them from the brief's §Infrastructure: {ENG}/specs/project-brief.md, in the canonical
engagement directory your prompt names, not in your worktree. Without a brief, or when it is
silent: Docker only if deployment.md names a container platform; pre-commit per Phase 5. Record
the choice in your report.
Phase 1: Framework Initialization
Init framework from architecture.md. Use Context7 for up-to-date init commands and flags. Verify it starts.
Checkpoint: dev server starts successfully.
Phase 2: Folder Structure
Convention — separate concerns by purpose:
- Web Apps:
src/{components, services, lib, config}+tests/{unit, integration, e2e} - APIs:
src/{routes, services, models, middleware, config}+tests/{unit, integration} - CLI tools:
src/{commands, services, config}+tests/{unit, integration}
Add src/prompts/ if project uses LLM prompts. Add src/messages/ if project uses i18n.
Checkpoint: structure created, matches project type.
Phase 3: Docker (conditional)
Set up only if specified in project-knowledge or in the brief's Infrastructure section.
Start .dockerignore from ~/.claude/shared/templates/infrastructure/static/.dockerignore and trim it to the stack.
Checkpoint: docker build succeeds, container starts.
Phase 4: .gitignore
Security patterns (always add):
.env
.env.*
!.env.example
*.key
*.pem
credentials.json
secrets/Add framework-specific patterns from architecture.md.
Create .env.example with required variable names (no values).
Checkpoint: git check-ignore .env returns .env.
Phase 5: Pre-commit Hooks
Convention: gitleaks for secret scanning. Target: total pre-commit time under 10 seconds.
Starting points: ~/.claude/shared/templates/infrastructure/static/husky-pre-commit-gitleaks.sh (Node, husky) and
~/.claude/shared/templates/infrastructure/static/pre-commit-config.yaml (Python, pre-commit framework).
Pre-commit scope (fast, staged files only):
- gitleaks (~2-5 seconds), always
- Lint staged files, unless the brief's Infrastructure section says gitleaks only
- Format check, same condition
Full test suites, integration tests, builds belong in CI.
Checkpoint: commit a file containing AKIA1234567890EXAMPLE — gitleaks blocks it.
Phase 6: Testing Infrastructure
Set up test framework, create smoke test: 1-2 tests verifying setup works (import main module, check environment).
Starting points: ~/.claude/shared/templates/infrastructure/tests/smoke.test.ts (Vitest) and ~/.claude/shared/templates/infrastructure/tests/test_smoke.py (pytest); replace
the placeholder test with a real import of the main module.
Checkpoint: test command passes.
Phase 7: Documentation & Commit
Update project-knowledge references (append, don't overwrite):
deployment.md— required environment variablespatterns.md(Git Workflow section) — pre-commit hooks and what they check
Commit (outside an engagement only; inside one the engine's task prompt owns the single commit, so skip this step there or that commit finds nothing and fails):
chore: setup project infrastructure
- Initialize [framework] project
- Setup pre-commit hooks (gitleaks)
- Create folder structure
- Add testing infrastructure
- Configure .gitignore and .env.example
[- Setup Docker (if applicable)]Verify before commit: git status shows no .env files (only .env.example).
Final Validation
- Framework runs locally
- Folder structure matches convention
- gitleaks blocks test secret
.gitignorecovers.env,*.key, secrets.env.exampleexists (if project uses env vars)- Smoke test passes
- Documentation updated
- All infrastructure committed (outside an engagement); inside one, all intended changes present in the worktree and ready for the engine's commit
- Docker works (if applicable)
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
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.

