add-command

Add bash commands to an auto-approved permissions list in settings.json.

Updated Mar 17, 2023
One-click install
npx skills add https://github.com/gsarmaonline/nvim --skill add-command-gsarmaonline
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-command
Source: https://github.com/gsarmaonline/nvim/tree/main/claude/skills/add-command
Command: npx skills add https://github.com/gsarmaonline/nvim --skill add-command-gsarmaonline

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill allows users to add specific bash commands to an auto-approval list, so the AI doesn't need to ask for permission to execute them.

Core Features & Use Cases

  • Streamlined Command Execution: Automatically approve frequently used or safe bash commands.
  • Permission Management: Directly modifies a settings.json file to update the allow list.
  • Use Case: A developer frequently uses git status and wants to ensure the AI can run it without interruption. Adding git status to the auto-approved list via this skill ensures seamless workflow.

Quick Start

Use the add-command skill to add the 'git status' command to the auto-approved permissions.

Frequently Asked Questions about add-command

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I auto-approve bash commands for AI execution without manual confirmation?

You can auto-approve bash commands by adding them to an auto-approved permissions list in a local JSON configuration file. This enables AI agents to execute routine commands seamlessly without requiring explicit user permission for each instance.

What is the best way to stop the AI from asking permission to run frequent bash commands?

The best way to stop permission prompts is to directly modify your settings JSON file to update the allow list. This automatically approves frequently used or safe bash commands like git status for seamless workflow execution.

How does command auto-approval handle existing entries in the settings JSON file?

Command auto-approval handles existing entries by checking the permissions list before adding new commands. It ensures correct formatting, manages duplicates by recognizing existing entries, and maintains JSON validity alongside alphabetical order.

Can I use a command line tool to manage my AI agent's bash permissions?

Yes, you can use a command line tool to manage AI agent bash permissions by directly modifying a local JSON configuration file. This updates the allow list while ensuring commands are added in the correct format and maintaining JSON validity.

Are there limitations when adding bash commands to an auto-approved permissions list?

A key limitation is ensuring the auto-approved permissions list maintains strict JSON validity and alphabetical order. The tool mitigates this by handling existing entries correctly, but users must still be cautious when broadly approving commands.