setup-toolkit
One playbook to standardize, harden, and ship every repository — deep docs, runtime AI guardrails, anti-slop UI, 4-layer testing, GitHub security automation, and multi-host DNS provisioning.
Live Docs Site · Setup Playbook · Guidelines · Stack Templates · Sponsor
What is this?¶
Every project I ship — across TypeScript, Next.js, Python, Go, Flutter, and multi-service monorepos — shares one engineering standard: code-grounded docs (PRD, ARCHITECTURE with Mermaid diagrams, quantitative DECISIONS, SETUP, DEPLOY, optional USAGE), a strict runtime AGENTS.md contract, automated SAST + secret scanning, custom-branded dependency maintenance via Yantra [bot], and live deployment wiring under *.tanisheesh.in.
A coding agent reads AGENTS.md, audits the target codebase, asks only for what cannot be inferred from code, commits atomically in standard emoji style, and — after approval — configures GitHub, Vercel, and GoDaddy DNS.
How to run it on a repo¶
Clone setup-toolkit alongside your project folders:
Open your coding agent inside my-app/ and say:
Follow
../setup-toolkit/AGENTS.mdfor this repo.
Repo Profiles¶
AGENTS.md runs one standard setup flow and adapts automatically based on repo type (always preserving useful facts from any existing docs):
| Profile | How it behaves |
|---|---|
| Portfolio | GPL-3.0 + GitHub Sponsors, *.tanisheesh.in URL, /brag demo slot, SEO/AI-search & legal pages, full docs + CodeQL/Gitleaks |
| OSS Package / CLI | Includes docs/USAGE.md (install, flags/SDK signatures, release flow), GitHub Sponsors, and launch/registry checklist; omits UI-only files when no frontend exists |
| Research / Academic | Adds CITATION.cff + .zenodo.json (ORCID-linked Zenodo DOI auto-minting on release) + DOI badge slot on top of standard docs & CI |
| Private Product | Omits GPL-3.0, Sponsors & stealth URLs, keeps internal architecture/runbooks sharp, and handles private-repo scan gates cleanly |
| Client Website | Preserves client branding, custom client domain, client legal/footer, and client license/copyright without forcing GPL-3.0, Sponsors, or *.tanisheesh.in |
What's inside¶
| Path | Purpose |
|---|---|
AGENTS.md |
7-step repo setup playbook, safety rules, and verification checklist |
repo-template/ |
1:1 target repo mirror: runtime AGENTS.md, README.md, deep docs/, SECURITY.md, CONTRIBUTING.md, CODE_OF_CONDUCT.md, ACCESSIBILITY.md, CITATION.cff, .zenodo.json, .coderabbit.yaml, .editorconfig, and .github/ (incl. FUNDING.yml) |
stack-templates/ |
Conditional configs & starters: vercel.json, render.yaml, site-footer.tsx (dynamic copyright + live health + Sponsor + legal links), health-route.ts, openapi-route.ts + api-docs-route.ts, SEO (robots.ts, sitemap.ts, llms-route.ts), core web pages (not-found.tsx, error.tsx, privacy-page.tsx, terms-page.tsx), and Playwright smoke + a11y + SEO checks |
guidelines/commit-style.md |
Emoji commit format: <emoji> [#issue] [scope:] <present tense lowercase message> |
guidelines/dev-guidelines.md |
Engineering standards, reusable component layering (ui/ vs features/ vs lib/), /api/health + OpenAPI docs, PR rules, and git safety |
guidelines/ui-guidelines.md |
Anti-AI-slop UI rules, mandatory 4-state UI contract, hosted site footer + live health standard, WCAG AA accessibility, and visual checks |
guidelines/security-guidelines.md |
Zod/Pydantic boundary validation, Auth/IDOR guards, server-only secrets, HMAC webhooks, SSRF, and LLM safety |
guidelines/testing-guidelines.md |
4-layer testing pyramid across Web/Playwright, Node/TS, Python, Go, Flutter/Dart, and CLIs |
guidelines/seo-guidelines.md |
Google + AI-search (ChatGPT/Perplexity/Gemini) checklist: SSR, sitemap.xml, robots.txt AI crawlers, real 404, canonicals, JSON-LD, /llms.txt, and Search Console/Bing handoff |
guidelines/launch-distribution.md |
Curated launch directories, Awesome-List PR targets, Show HN / Peerlist / Product Hunt playbooks, package registries, and Zenodo DOI archiving |
scripts/setup-github-repo.ps1 |
Sets metadata, squash-only merge rules, Secret Scanning + Push Protection, Protect main ruleset, labels, Secrets/Vars (incl. ZENODO_TOKEN, INDEXNOW_KEY, BING_WEBMASTER_API_KEY), and Yantra [bot] collaborator invite/accept |
scripts/setup-vercel-project.ps1 |
Auto-detects framework & Node version (incl. monorepo RootDirectory) and sets Vercel security, region (bom1), Fluid compute, and docs-ignore builds |
scripts/setup-subdomain.ps1 |
Wires <sub>.tanisheesh.in on Vercel, Render, Railway, GitHub Pages, or Custom targets via host APIs + GoDaddy CNAME |
scripts/setup-search-indexing.ps1 |
Appends GoDaddy DNS TXT verification records safely and submits sitemaps/URLs to IndexNow (Bing + ChatGPT Search), Bing Webmaster API, and Google Search Console API |
Automated Quality, Security & Maintenance Loop¶
Every repo configured with repo-template/ gets:
- Universal CI (
ci.yml):CI_DIRS: "auto"discovers single apps and monorepos (backend/,frontend/,sdk/,collector/,proxy-go/,mobile/,electron/, etc.) across Node / pnpm (v6cache) / Bun, Python (uv/ruff/mypy/pytest), Go (go vet/go test -race/go build), Flutter/Dart (flutter analyze/flutter test), Playwright E2E, and static HTML. - Security Scanning:
codeql.yml(JS/TS, Python, Go),secret-scan.yml(Gitleaks v3),dependency-review.yml(high/critical CVEs + GPL-compatible license gate), plus GitHub Secret Scanning + Push Protection. - AI Review & Launch Demos:
.coderabbit.yamlenforcesAGENTS.md+ anti-slop rules on PRs (with optionalai-review.ymlBYOK fallback for private repos and localcoderabbit review --agentsupport), plus/braglaunch video embedding underREADME.md's## Demosection. - Custom-Branded Dependency Maintenance (
Yantra [bot]): Uses@tanisheesh-bot(BOT_TOKEN) +.github/renovate.jsonso PRs, commits, and the Contributors list display a cohesive avatar andYantra [bot]identity instead ofdependabot[bot]:
| When (IST) | What happens |
|---|---|
| Monday 06:00 | renovate.yml runs as Yantra [bot], opening grouped minor/patch PRs (with 3-day release cooldown) and individual major + OSV security PRs |
| Monday 10:45 | Weekly scheduled CodeQL scan runs on main |
| On each PR | ci.yml, codeql.yml, secret-scan.yml, dependency-review.yml, and labeler.yml run |
| CI passes | dependency-auto-merge.yml squash-merges verified PRs as Yantra [bot] automatically |
| CI fails | PR stays open with needs-review label and comment |
| Monday 10:00 | maintenance-report.yml emails merged/open PRs, Dependabot alerts, CodeQL alerts, Secret Scanning alerts, and main CI health |
Credentials & Manual Scripts¶
Copy .env.example to .env (gitignored), fill in the tokens you use (GITHUB_TOKEN, BOT_TOKEN, VERCEL_TOKEN, RENDER_API_KEY, GODADDY_KEY, MAIL_USERNAME, MAIL_PASSWORD, ALERTS_TOKEN), and load .env into your PowerShell session before running scripts manually:
Get-Content .\.env | Where-Object { $_ -match '^\s*([A-Z_]+)\s*=\s*(.+)$' } |
ForEach-Object { [Environment]::SetEnvironmentVariable($Matches[1], $Matches[2].Trim(), 'Process') }
.\scripts\setup-github-repo.ps1 -Repo "my-app" `
-Description "One-line pitch" -Homepage "https://myapp.tanisheesh.in" `
-Topics "api-monitoring","llm-observability","opentelemetry","self-hosted","developer-tools","python-sdk"
.\scripts\setup-vercel-project.ps1 -Project "my-app" -RepoPath "..\my-app" -Region "bom1" -IgnoreDocsOnlyBuilds
.\scripts\setup-subdomain.ps1 -Subdomain "myapp" -Platform Vercel -VercelProject "my-app"
.\scripts\setup-subdomain.ps1 -Subdomain "myapp" -Platform Render -RenderHost "my-app.onrender.com"
.\scripts\setup-subdomain.ps1 -Subdomain "myapp" -Platform Railway -TargetHost "my-app.up.railway.app"
.\scripts\setup-subdomain.ps1 -Subdomain "myapp" -Platform GitHubPages