setup-agystack
Skill58 starsChanged 3 months agoMITView on GitHub
Configure models and execution runtime for agystack. Configures Antigravity model tiers per role and Cloud Run runtime settings for up to 100+ parallel workers.
- Reads credentials
In this repository49 other files it gives its agents.
- rules/AGENTS.mdAGENTS.md
- agystackSkill
- architectSkill
- arenaSkill
- automate-meSkill
- blast-radiusSkill
- broSkill
- create-verification-skillSkill
- deslopSkill
- figure-it-outSkill
- howSkill
- interrogateSkill
- loopSkill
- maintain-verification-skillSkill
- no-commentsSkill
- Poteto ModeSkill
- principle-attack-the-premiseSkill
- principle-boundary-disciplineSkill
- principle-build-the-leverSkill
- principle-encode-lessons-in-structureSkill
- principle-exhaust-the-design-spaceSkill
- principle-experience-firstSkill
- principle-fix-root-causesSkill
- principle-foundational-thinkingSkill
- principle-guard-the-context-windowSkill
- principle-laziness-protocolSkill
- principle-make-operations-idempotentSkill
- principle-migrate-callers-then-delete-legacy-apisSkill
- principle-minimize-reader-loadSkill
- principle-model-the-domainSkill
- principle-never-block-on-the-humanSkill
- principle-outcome-oriented-executionSkill
- principle-prove-it-worksSkill
- principle-redesign-from-first-principlesSkill
- principle-separate-before-serializing-shared-stateSkill
- principle-sequence-verifiable-unitsSkill
- principle-subtract-before-you-addSkill
- principle-test-behavior-not-implementationSkill
- principle-type-system-disciplineSkill
- recallSkill
- reflectSkill
- show-me-your-workSkill
- swarmSkill
- tddSkill
- teachSkill
- technical-writingSkill
- typescript-best-practicesSkill
- unslopSkill
- whySkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 3 are distinctive, and 8 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.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
When presenting the runtime choice to the user, explicitly explain the cost and execution model before asking them to choose:
- Distinctive: line 38
If Cloud Run is selected:
- Very specific: line 39
CRITICAL INSTRUCTION FOR AI AGENT FOR PROVISIONING: NEVER print manual bash commands with placeholders (like <your-gcp-project-id>) for the …
- Very specific: line 42
Google AI Studio API Key: If using GEMINI_API_KEY, verify that paid billing (Pay-as-you-go / Tier 1+) is enabled on the AI Studio project.
- Very specific: line 43
Vertex AI Mode: If using Vertex AI mode, verify that the GCP project has the Vertex AI API enabled (aiplatform.googleapis.com) and that the …
- Very specific: line 45
Check Requirements: Run python3 skills/setup-agystack/scripts/setup_runtime.py --check to verify gcloud is available and authenticated.
- Distinctive: line 48
Ask the user which project they want to use, or if they want you to create a new one.
- Very specific: line 53
Do not leave the user to do the work.
- Very specific: line 65
If ~/.gemini/config/plugins/agystack/rules/agystack-models.md exists, read its current role assignments.
- Very specific: line 75
Write to .agents/plugins/agystack/rules/agystack-models.md if installed workspace-locally, otherwise …
- Very specific: line 110
If the project lacks an end-to-end verification harness, offer /create-verification-skill.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Setup agystack
Configure model tiers in ~/.gemini/config/plugins/agystack/rules/agystack-models.md and execution runtime in ~/.gemini/config/plugins/agystack/agystack-runtime.json (or workspace .agents/plugins/agystack/).
Prerequisites
bun(v1.0+) is mandatory for PR babysitting (watch-pr) and multi-agent orchestration (orch). Node.js is not supported.gh(GitHub CLI) is required for PR automation and preflight checks.gt(Graphite CLI) is recommended for stacked PRs.google-cloud-storage,google-genai, andgoogle-cloud-runare optional Python libraries for GCS artifact storage, preflight checks, and Cloud Run job monitoring.
During setup, verify dependencies automatically via --doctor:
python3 "$(find ~/.gemini/config/plugins/agystack .agents/plugins/agystack skills/setup-agystack -name "setup_runtime.py" 2>/dev/null | head -1)" --doctorSteps
1. Select execution runtime
Choose the execution runtime for parallel swarms:
- Local Runtime (Default): Runs via native
invoke_subagentin Antigravity for up to 8 concurrent workers. Zero cloud setup required. - Cloud Run Runtime: Runs via Google Cloud Run Jobs for 10 to 100+ parallel workers in isolated container instances. Cloud Run is strictly an on-demand batch runner. It only spins up containers when you explicitly trigger
/swarm(or ask to swarm a task across many parallel workers). It does not run continuously and is never an always-on server. It costs $0 when idle. Daily tasks (pair programming, routine edits, bug fixes, refactoring, code reviews via/interrogate, and local subagents) always run locally on your machine.
CRITICAL INSTRUCTION FOR AI AGENT WHEN PRESENTING RUNTIME CHOICE: When presenting the runtime choice to the user, explicitly explain the cost and execution model before asking them to choose:
- Explain that Cloud Run is strictly an on-demand batch runner. It only spins up containers when the user explicitly triggers
/swarm(or asks to swarm a task across many parallel workers). - Clarify that Cloud Run does NOT run continuously and is never an always-on server.
- State that Cloud Run costs $0 when idle.
- Reassure the user that daily tasks (pair programming, routine edits, bug fixes, refactoring, code reviews via
/interrogate, and local subagents) ALWAYS run locally on their machine.
If Cloud Run is selected:
CRITICAL INSTRUCTION FOR AI AGENT FOR PROVISIONING: NEVER print manual bash commands with placeholders (like <your-gcp-project-id>) for the user to run. You MUST directly execute the setup commands yourself using python3 "$(find ~/.gemini/config/plugins/agystack .agents/plugins/agystack skills/setup-agystack -name "setup_runtime.py" 2>/dev/null | head -1)" right here in the chat environment.
- Verify Quotas and Permissions:
- Google AI Studio API Key: If using
GEMINI_API_KEY, verify that paid billing (Pay-as-you-go / Tier 1+) is enabled on the AI Studio project. Free-tier API keys (capped at 5 requests per minute) are strictly prohibited for swarms because parallel workers will hit immediate rate limits. - Vertex AI Mode: If using Vertex AI mode, verify that the GCP project has the Vertex AI API enabled (
aiplatform.googleapis.com) and that the active user or service account has the Vertex AI User role (roles/aiplatform.user). - Model Availability: Gemini 3 series models (
gemini-3.8-flash) require global routing (aiplatform.googleapis.comwithlocations/global). Regional endpoints return HTTP 404 for Gemini 3.x.
- Google AI Studio API Key: If using
- Check Requirements: Run
python3 skills/setup-agystack/scripts/setup_runtime.py --checkto verifygcloudis available and authenticated. - Select Project:
- Query available projects by running
python3 skills/setup-agystack/scripts/setup_runtime.py --list-projects. - Ask the user which project they want to use, or if they want you to create a new one.
- Query available projects by running
- Provisioning: Once a project ID is known, run the full provisioner (do this yourself, do not ask the user to do it!):
python3 skills/setup-agystack/scripts/setup_runtime.py --project <PROJECT_ID> --auto-provision --scripts-dir skills/swarm/scripts(or use--create-project <PROJECT_ID>instead of--projectif creating a new one).
Do not leave the user to do the work. Complete the deployment end-to-end for them. Ensure GEMINI_API_KEY is exported in the user's environment with paid tier enabled (Pay-as-you-go), or Vertex AI permissions and global endpoint access are verified.
2. Detect available models
Enumerate the model tiers you can pass to invoke_subagent:
pro: High-capability tier (maximum reasoning budget for complex code, architecture, and hard tasks)flash: Balanced fast tier (fast execution for exploration and standard generation)flash_lite: Lightweight tier (minimal latency for quick lookups)inherit(orauto): Inherit parent chat model
3. Load current state
If ~/.gemini/config/plugins/agystack/rules/agystack-models.md exists, read its current role assignments. Otherwise start from skill defaults.
4. Map and confirm
Show every role with its model tier and confirm:
- Single roles:
feature, refactoring,bug-fix,perf-issue,hillclimb,swarm workers - Panel roles:
arena runners,architect runners,interrogate reviewers
5. Write the model rule
Write to .agents/plugins/agystack/rules/agystack-models.md if installed workspace-locally, otherwise ~/.gemini/config/plugins/agystack/rules/agystack-models.md:
# agystack model configuration. One line per role. Delete a line to fall back to the skill default.
# Antigravity model tiers for invoke_subagent:
# - pro (High-capability tier: deep reasoning, large refactors, complex design)
# - flash (Balanced fast tier: exploration, reading, standard code generation)
# - flash_lite (Lightweight tier: fast mechanical lookups)
# - inherit (Runs on the active parent chat session model)
feature, refactoring: pro
bug-fix: pro
perf-issue: pro
hillclimb: pro
judgment and prose: pro
hardest tasks: pro
how explorer: flash
how explainer: pro
why investigators: flash
why synthesizer: pro
reflect tooling: pro
reflect judgment, divergent, synthesizer: pro
arena runners: pro, flash, inherit
arena cross-judge pool: pro, flash, inherit
swarm workers: flash
architect runners: pro, flash, inherit
interrogate reviewers: pro, flash, inherit6. Confirm
Confirm that the model rule and runtime settings are active for new sessions.
7. Offer a verification skill (optional)
If the project lacks an end-to-end verification harness, offer /create-verification-skill.
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.

