A reusable set of instruction files for AI coding assistants (GitHub Copilot) that encapsulate cloud.gov platform guidance and best practices.
This repository provides a comprehensive set of instruction files that help AI coding assistants understand and follow cloud.gov conventions. Use these files as a starting point for any project deployed to the cloud.gov platform.
| File | Purpose |
|---|---|
.github/copilot-instructions.md |
Repository-level cloud.gov platform overview |
AGENTS.md |
AI agent behaviors and safety guardrails |
.github/instructions/ |
Task-specific instruction files |
.github/agents/ |
Custom Copilot agents for specialized tasks |
.github/skills/ |
Reusable skills for domain expertise |
Choose one of these methods to get the instruction files:
Option A: Download from Release (Recommended)
# Download and extract the latest release
curl -L https://github.com/adhocteam/cloud-gov-instructions/archive/refs/tags/v1.2.0.tar.gz | tar xz
# Copy instruction files to your project
cd cloud-gov-instructions-1.2.0
cp -r .github/copilot-instructions.md your-project/.github/
cp -r .github/instructions your-project/.github/
cp -r .github/agents your-project/.github/
cp -r .github/skills your-project/.github/
cp AGENTS.md your-project/Option B: Clone Repository
# Clone this repository
git clone https://github.com/adhocteam/cloud-gov-instructions.git
# Copy instruction files to your project
cp -r cloud-gov-instructions/.github/copilot-instructions.md your-project/.github/
cp -r cloud-gov-instructions/.github/instructions your-project/.github/
cp -r cloud-gov-instructions/.github/agents your-project/.github/
cp -r cloud-gov-instructions/.github/skills your-project/.github/
cp cloud-gov-instructions/AGENTS.md your-project/Tip: Browse all releases at https://github.com/adhocteam/cloud-gov-instructions/releases
Update the copied files as needed:
.github/copilot-instructions.md: Add project-specific contextAGENTS.md: Adjust agent behaviors for your team's needs- Instruction files: Modify patterns or add custom guidance
GitHub Copilot will automatically use these instructions when:
- Editing files that match
applyTopatterns (e.g.,manifest*.yml) - Working with cloud.gov-related code
- Running custom agents for compliance documentation
| File | Applies To | Description |
|---|---|---|
| deployment.instructions.md | manifest*.yml, Procfile, .cfignore, .profile |
Deployment workflows, blue-green deployments, scaling |
| manifest.instructions.md | manifest*.yml, vars*.yml |
Manifest configuration, properties reference |
| services.instructions.md | *.py, *.js, *.ts, *.rb, *.java, *.go, manifest*.yml |
RDS, S3, Redis service integration |
| File | Applies To | Description |
|---|---|---|
| cicd.instructions.md | .github/workflows/*.yml, Jenkinsfile, .circleci/config.yml |
CI/CD pipelines, service accounts |
| security.instructions.md | *.py, *.js, *.ts, *.rb, *.java, *.go, manifest*.yml |
FedRAMP compliance, secrets management, NIST controls |
| logging.instructions.md | *.py, *.js, *.ts, *.rb, *.java, *.go, manifest*.yml |
Structured logging, log drains |
| Agent | Purpose |
|---|---|
| compliance-docs.agent.md | Generate SSP sections and Control Implementation Matrices |
To use the compliance documentation agent in VS Code:
- Open the Copilot Chat panel (
Ctrl+Shift+I/Cmd+Shift+I) - Type
@to see available agents, then selectcompliance-docs - Enter your prompt, for example:
@compliance-docs Generate a Control Implementation Matrix for this project
Or use specific prompts like:
@compliance-docs Scan the codebase for NIST control references and create SSP sections
@compliance-docs Document which controls are inherited from cloud.gov vs implemented by our application
Skills provide domain expertise that Copilot can draw upon regardless of file type:
| Skill | Purpose |
|---|---|
| cf-troubleshoot.md | Diagnose and resolve common cloud.gov/CF issues |
Skills are automatically available to Copilot and provide expert guidance for troubleshooting, debugging, and operational tasks.
The AGENTS.md file includes critical safety rules that prevent AI assistants from running destructive Cloud Foundry commands without explicit confirmation:
- Destructive commands (HIGH risk):
cf delete,cf delete-service- Always require confirmation - Modifying commands (MEDIUM risk):
cf push,cf restage- Require confirmation in production - Safe commands:
cf apps,cf logs- No confirmation needed
When generating security-relevant code, AI assistants will include NIST SP 800-53 control references:
def authenticate_user(username: str, password: str) -> User:
"""
Authenticate user with credentials.
NIST 800-53: IA-2 (Identification and Authentication)
NIST 800-53: IA-5 (Authenticator Management)
"""
# ImplementationUse the compliance docs agent to generate:
- Control Implementation Matrix (spreadsheet format)
- System Security Plan sections
- Control inheritance documentation
your-project/
├── .github/
│ ├── copilot-instructions.md # Repository-level instructions
│ ├── instructions/
│ │ ├── deployment.instructions.md
│ │ ├── manifest.instructions.md
│ │ ├── services.instructions.md
│ │ ├── cicd.instructions.md
│ │ ├── security.instructions.md
│ │ └── logging.instructions.md
│ ├── agents/
│ │ └── compliance-docs.agent.md
│ └── skills/
│ └── cf-troubleshoot.md
├── AGENTS.md # Agent behaviors and safety rules
├── manifest.yml # Your app's deployment config
└── ... (your application code)
- GitHub Copilot: Active subscription with custom instructions support
- VS Code: With GitHub Copilot extension installed
- Cloud Foundry CLI: For deployment commands (
cf)
Create additional instruction files for your project:
---
applyTo: "**/your-pattern/**"
---
# Your Custom Instructions
Instructions specific to your project...Add custom agent rules to AGENTS.md:
### Project-Specific Rules
- Your custom rule here
- Another project-specific behaviorThese instructions support FedRAMP compliance by:
- Documenting inherited controls from cloud.gov
- Guiding implementation of application-level controls
- Including NIST references in generated code
- Generating compliance documentation via custom agents
cloud.gov is FedRAMP Moderate authorized (Package ID: F1607067912), providing approximately 60% of required controls.
Contributions are welcome! Please:
- Fork this repository
- Create a feature branch
- Submit a pull request with your improvements
- cloud.gov Documentation
- Cloud Foundry Documentation
- GitHub Copilot Custom Instructions
- NIST SP 800-53
- FedRAMP
This project is licensed under the MIT License.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Use at your own risk.