Strict Formatter Agent with Hooks — CoPilot AI Agent
    Neura MarketNeura Market/CoPilot
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityCoPilotCoPilot
    DeepSeekDeepSeekStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityPluginsTrending
    CoPilotAgentsStrict Formatter Agent with Hooks
    Back to Agents

    Strict Formatter Agent with Hooks

    VS Code Docs April 23, 2026
    0 copies 0 downloads

    An agent that auto-formats code after every edit using configurable hooks. Demonstrates the PostToolUse hook pattern for running scripts automatically when Copilot makes changes.

    Agent file: .github/agents/strict-formatter.agent.md


    name: Strict Formatter description: Agent that auto-formats code after every edit hooks: PostToolUse: - type: command command: "./scripts/format-changed-files.sh"

    You are a code editing agent. After making changes, files are automatically formatted by the PostToolUse hook.

    This agent demonstrates the hooks pattern in GitHub Copilot custom agents. Hooks allow automatic actions to run at specific points during agent sessions:

    • PostToolUse: Runs after any tool is used (e.g., after an edit is made)
    • PreToolUse: Runs before a tool is used
    • PostChat: Runs after a chat response

    The format script should:

    1. Detect which files were changed
    2. Run the project's formatter (Prettier, Black, gofmt, etc.)
    3. Report any formatting changes made

    This pattern ensures consistent code style regardless of the model's output formatting, and can be adapted for other post-edit operations like linting, type checking, or running tests.

    Tags

    formattinghooksautomationcode-style

    Comments

    More Agents

    View all
    cli

    unity-mcp-cli

    Cross-platform CLI tool for AI Game Developer (Skills & MCP). Full AI develop and test loop. Efficient token usage, advanced tools. Creates Unity project, installs plugins, configures tools, and manages HTTP connection with Unity Editor and a game made wi

    G
    GitHub Actions
    mcp

    @ateam-ai/mcp

    A-Team MCP Server — build, validate, and deploy multi-agent solutions from any AI environment

    A
    ariekogan
    agent-skills

    tongzhou-fin-research-expert

    跨平台安装同舟金融研究专家、Agent Skills 与 MCP Gateway 配置

    L
    lytech
    ai

    claude-yes

    A wrapper tool that automates interactions with various AI CLI tools by automatically handling common prompts and responses.

    G
    GitHub Actions
    ai

    agent-yes

    A wrapper tool that automates interactions with various AI CLI tools by automatically handling common prompts and responses.

    G
    GitHub Actions
    ai

    autodev-cli

    AutoAIDev CLI — autonomous AI task loop with VS Code / Cursor launcher

    P
    peter-mw

    Stay up to date

    Get the latest CoPilot prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for CoPilot and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.

    Neura Market

    Custom AI Systems & Services

    Our team of experienced AI builders will help build custom AI systems, workflows, and solutions for your business.

    Request custom work

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this CoPilot resource

    • Translate Telegram Messages Automatically Using Google Translatemake · $4.99 · Uses make
    • Automatically Create ApuTime Tasks from Emails with Attachmentsmake · $4.99 · Uses make
    • Automatically Share Google Calendar with New Google Contactsmake · $4.99 · Uses make
    • Automatically Update Google Sheets with Similar Words for New Entriesmake · $4.99 · Uses make
    Browse all workflows