No Heredoc File Operations
Prevents terminal heredoc file corruption in VS Code Copilot by enforcing use of file editing tools instead of shell redirections
MCP get_skill({ skillId: "mandatory-file-operation-override-66039d9b" })Use this skill with your agent
Create a free account and connect via MCP
# MANDATORY: File Operation Override This instruction applies to ALL agents and ALL file operations. It takes precedence over any other learned behavior. ## The Problem Terminal heredoc operations are BROKEN in VS Code's Copilot integration. They cause: - File corruption from tab characters triggering shell completion - Mangled content from quote/backtick escaping failures - Truncated files from exit code 130 interruptions - Garbage output from special character interpretation ## The Rule **BEFORE writing ANY terminal command that creates or modifies a file, STOP.** Ask yourself: "Am I about to use `cat`, `echo`, `printf`, `tee`, or `>>`/`>` to write content to a file?" If YES → **DO NOT EXECUTE.** Use file editing tools instead. ## Forbidden Patterns ```bash # ALL OF THESE CORRUPT FILES - NEVER USE THEM cat > file << EOF cat > file << 'EOF' cat > file <<EOF cat > file <<'EOF' cat > file <<-EOF cat >> file << EOF echo "multi line" > file printf '%s\n' "line1" "line2" > file tee file << EOF tee file << 'EOF' ``` ## Required Approach Instead of terminal commands for file content: - **New files** → Use the file creation/editing tool provided by your environment - **Modify files** → Use the file editing tool provided by your environment - **Delete files** → Use the file deletion tool or `rm` command ## Terminal IS Allowed For - `npm install`, `pip install`, `cargo add` (package management) - `npm run build`, `make`, `cargo build` (builds) - `npm test`, `pytest`, `go test` (testing) - `git add`, `git commit`, `git push` (version control) - `node script.js`, `python app.py` (running existing code) - `ls`, `cd`, `mkdir`, `pwd`, `rm` (filesystem navigation) - `curl`, `wget` (downloading, but not piping to files with content manipulation) ## Terminal is FORBIDDEN For - ANY file creation with content - ANY file modification with content - ANY heredoc syntax (`<<`) - ANY multi-line string redirection ## Enforcement This is not a suggestion. This is a hard technical requirement due to VS Code terminal integration bugs. Ignoring this instruction will result in corrupted files that the user must manually fix. When you need to create or edit a file: 1. Stop before typing any terminal command 2. Use the appropriate file editing tool 3. The tool will handle the content correctly without corruption
Related Skills
More skills in Software Engineering
Accessibility Standards
Comprehensive web accessibility standards based on WCAG 2.2 AA, with 38+ anti-patterns, legal enforcement context (EAA, ADA Title II), WAI-ARIA patterns, and framework-specific fixes for modern web frameworks and libraries.
Accord
Authoring unified specification packages across Business/Development/Design teams via staged elaboration (L0 Vision → L1 Requirements → L2 Team Detail → L3 Acceptance Criteria). No code. Use when authoring cross-team specs, building L0-L3 packages, or aligning Biz/Dev/Design on a single source of truth.
Acquire Codebase Knowledge
Use this skill when the user explicitly asks to map, document, or onboard into an existing codebase. Trigger for prompts like "map this codebase", "document this architecture", "onboard me to this repo", or "create codebase docs". Do not trigger for routine feature implementation, bug fixes, or narrow code edits unless the user asks for repository-level discovery.
Acreadiness Assess
Run the AgentRC readiness assessment on the current repository and produce a static HTML dashboard at reports/index.html. Wraps `npx github:microsoft/agentrc readiness` and hands off rendering to the @ai-readiness-reporter custom agent. Supports policies (--policy) for org-specific scoring. Use when asked to assess, audit, or score the AI readiness of a repo.
Acreadiness Generate Instructions
Generate tailored AI agent instruction files via AgentRC instructions command. Produces .github/copilot-instructions.md (default, recommended for Copilot in VS Code) plus optional per-area .instructions.md files with applyTo globs for monorepos. Use after running /acreadiness-assess to close gaps in the AI Tooling pillar.
Acreadiness Policy
Help the user pick, write, or apply an AgentRC policy. Policies customise readiness scoring by disabling irrelevant checks, overriding impact/level, setting pass-rate thresholds, or chaining org baselines with team overrides. Use when the user asks about strict mode, AI-only scoring, custom weights, CI gating, or wants org-wide standardisation.
Explore Other Categories
Skills from other categories with shared topics
Code Components
Understanding code components structure and implementation
Comment Code Generate A Tutorial
Transform this Python script into a polished, beginner-friendly project by refactoring the code, adding clear instructional comments, and generating a complete markdown tutorial.
Create Tldr Page
Create a tldr page from documentation URLs and command examples, requiring both URL and command name.