Draft Security Guardrails for AGENTS.md Configuration
Generate a robust security policy for AGENTS.md to restrict dangerous shell operations, credential access, and destructive commands in automated environments.
Agent prompt for ChatGPT
Prompt
mkdir -p .agents/skills/draft-security-guardrails-for-agents-md-configuration && curl -sL "https://prompts-gpt.com/prompts/draft-security-guardrails-for-agents-md-configuration/raw" -o .agents/skills/draft-security-guardrails-for-agents-md-configuration/SKILL.md---
name: draft-security-guardrails-for-agents-md-configuration
description: "Generate a robust security policy for AGENTS.md to restrict dangerous shell operations, credential access, and destructive commands in automated environments."
---
# Draft Security Guardrails for AGENTS.md Configuration
Generate a robust security policy for AGENTS.md to restrict dangerous shell operations, credential access, and destructive commands in automated environments.
## Prompt
```
Act as a Senior Security Engineer. Draft a security guardrails section for an AGENTS.md file that restricts autonomous agents from performing high-risk operations. Follow these rules: 1. List specific prohibited CLI flags for common tools like rm, git, and npm. 2. Define strict environment variable access controls to prevent secret exposure. 3. Prohibit network-level package installations that bypass verified registries. 4. Use clear, imperative language suitable for both human auditors and LLM-based autonomous systems. 5. Include a specific prohibition against modifying system-level configuration files. Output format: 1. Prohibited CLI Commands and Flags. 2. Environment Variable Access Restrictions. 3. Network and Package Installation Policies. 4. System File Protection Rules. This prompt is for security configuration guidance only and does not constitute a comprehensive security audit; consult a cybersecurity expert to verify your final implementation.
```
## Usage Notes
Use this prompt when setting up an AGENTS.md file for an autonomous repository or agent framework. Paste the output directly into your documentation. Compatible with ChatGPT, Claude, and GitHub Copilot.
Act as a Senior Security Engineer. Draft a security guardrails section for an AGENTS.md file that restricts autonomous agents from performing high-risk operations. Follow these rules: 1. List specific prohibited CLI flags for common tools like rm, git, and npm. 2. Define strict environment variable access controls to prevent secret exposure. 3. Prohibit network-level package installations that bypass verified registries. 4. Use clear, imperative language suitable for both human auditors and LLM-based autonomous systems. 5. Include a specific prohibition against modifying system-level configuration files. Output format: 1. Prohibited CLI Commands and Flags. 2. Environment Variable Access Restrictions. 3. Network and Package Installation Policies. 4. System File Protection Rules. This prompt is for security configuration guidance only and does not constitute a comprehensive security audit; consult a cybersecurity expert to verify your final implementation.Example output
Tips and common edits
Why this works
- Categorizes restrictions into logical security domains for easy parsing.
- Uses imperative language to enforce strict compliance for both humans and AI.
- Includes a specific disclaimer regarding the scope of security guidance.
Use this prompt when setting up an AGENTS.md file for an autonomous repository or agent framework. Paste the output directly into your documentation. Compatible with ChatGPT, Claude, and GitHub Copilot.
Common edits
- Add specific internal domain names to the network policy section.
- Adjust the prohibited CLI flag list based on the specific language runtime used.
Reuse it: Use in a workflowAdapt in the builder
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
More like this
Design a Sandbox Security Policy for Autonomous Coding Agents
Generate a rigorous security policy for autonomous agents to define allowed shell commands, file access boundaries, and network restrictions.
Automated Dependency Upgrade and Rollback Protocol
Generate a safe, step-by-step dependency upgrade plan that includes strict semver validation, lockfile parity checks, and automated rollback triggers.
Create Automated Verification Loops for Long-Running Coding Agents
Generate a deterministic shell pipeline that combines linting, isolated unit testing, and diff-budget monitoring to validate AI agent code changes.
Draft Technical Security and Compliance Questionnaire Responses
Turn raw architecture notes into polished, professional security questionnaire responses that satisfy procurement and IT audit requirements.
Create Selective Pre-Commit Hooks for Claude Code
This prompt generates a bash script that triggers specific tests and typechecks only for packages modified in your current git branch.
Generate a Precise AGENTS.md Routing Map for Codex
Create an AGENTS.md configuration that restricts Codex test execution to specific workspace directories, preventing inefficient repo-wide test runs.
- Red Team Agent System Prompts for Injection Vulnerabilities
- Codex Cloud Environment Setup: Setup Script, Env Vars and a Smoke Test
- Headless Claude Code Script for CI: claude -p Task With Exit Codes and Output Checks
- Checkable Guardrail Rules for a Coding Agent: Blocked Commands, Approvals, Secrets and Hooks
- Workplace generative AI acceptable-use policy framework
- Draft Input Sanitization Rules for AI Agents