cloud-gov-instructions deployment.instructions.md

cloud-gov-instructions deployment.instructions.md is an instructions file for GitHub Copilot from adhocteam/cloud-gov-instructions. It costs 1,614 tokens per session, scanned A, original, MIT.

Instructions for deploying an application to cloud.gov, a government cloud platform, using the Cloud Foundry command-line tool. They cover prerequisites, application preparation, and required configuration files.

In plain words
What is it for?
Use them to prepare a cloud.gov application, create its deployment manifest, target the correct organization and space, and run the deployment workflow.
Why use it?
They give developers a consistent deployment process and highlight requirements such as stateless storage, quick startup, and a health endpoint.

Instructions file for GitHub Copilot

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/adhocteam/cloud-gov-instructions/deployment
Clone the repo
git clone --depth 1 https://github.com/adhocteam/cloud-gov-instructions

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cloud-gov-instructions deployment.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/adhocteam/cloud-gov-instructions/deployment.svg)](https://agentmods.dev/instructions/adhocteam/cloud-gov-instructions/deployment)
Your own site
<a href="https://agentmods.dev/instructions/adhocteam/cloud-gov-instructions/deployment"><img src="https://agentmods.dev/badge/instructions/adhocteam/cloud-gov-instructions/deployment.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,614 This file is loaded in full into every session.
When invoked 1,614 The same file — it is already loaded in full.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01614 $0.01614
Opus 5 $0.00807 $0.00807
Sonnet 5 $0.00323 $0.00323
Haiku 4.5 $0.00161 $0.00161

Measured 3d ago against content hash cf88017489c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cloud-gov-instructions deployment.instructions.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl https://<APP_NAME>.app.cloud.gov/health
.github/instructions/deployment.instructions.md · 318 lines

How it starts

The opening of the file, as written. The whole thing — 318 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cloud.gov Deployment Instructions

This document provides guidance for deploying applications to cloud.gov using the Cloud Foundry CLI.

Overview

Cloud.gov uses cf push as the primary deployment command. The platform builds your application using buildpacks and runs it in isolated containers.

Prerequisites

  • Cloud Foundry CLI installed (cf command available)
  • Authenticated to cloud.gov: cf login -a api.fr.cloud.gov --sso
  • Targeted the correct org and space: cf target -o <ORG> -s <SPACE>

Basic Deployment Workflow

1. Prepare Your Application

Ensure your application follows these principles:

  • Stateless: Don't write to local filesystem for persistent data
  • 12-Factor: Follow Twelve-Factor App methodology
  • Quick startup: Applications should start within 60 seconds
  • Health endpoint: Implement /health or similar for monitoring

2. Create Required Files

manifest.yml
---
applications:
  - name: my-application
    memory: 512M
    instances: 2
    buildpacks:
      - python_buildpack
    env:
      ENVIRONMENT: production
    services:
      - my-database
    routes:
      - route: my-app.app.cloud.gov
.cfignore

Exclude unnecessary files from deployment:

.git/
.gitignore
node_modules/
__pycache__/
*.pyc
.env
.env.*
tests/
docs/
*.md
!README.md
.vscode/
.idea/
.profile (optional)

Shell script run before app starts:

#!/bin/bash
# Set runtime environment variables
export APP_STARTED_AT=$(date)
Procfile (optional)

Define process types:

web: gunicorn app:app --bind 0.0.0.0:$PORT
worker: python worker.py

3. Deploy the Application

# Basic deployment
cf push

# Deploy with specific manifest
cf push -f manifest.yml

# Deploy without starting (useful for binding services first)
cf push --no-start

# Deploy with a specific app name (overrides manifest)
cf push my-app-name

4. Verify Deployment

# Check application status
cf app <APP_NAME>

# View recent logs
cf logs <APP_NAME> --recent

# Stream live logs
cf logs <APP_NAME>

# Check application health
curl https://<APP_NAME>.app.cloud.gov/health

Read the full file on GitHub · 318 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 318 lines · 1,614 tokens per session scan A cf88017489c2

Subscribe to this mod's changes

cloud-gov-instructions deployment.instructions.md is an instructions file published in the GitHub repository adhocteam/cloud-gov-instructions (10 stars, last pushed 5mo ago), licensed MIT. It adds 1,614 tokens to every session, about $0.0081 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.