shell-config-lock

Lock and unlock Bash and Zsh configuration files with immutable flags.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/zjh08177/agent-harness --skill shell-config-lock
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shell-config-lock
Source: https://github.com/zjh08177/agent-harness/tree/main/skills/shell-config-lock
Command: npx skills add https://github.com/zjh08177/agent-harness --skill shell-config-lock

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Lock and unlock shell configuration files to prevent unwanted modifications and protect user environments from unintended changes.

Core Features & Use Cases

  • Lock: Set immutable flags on bash/zsh config files (e.g., ~/.bashrc, ~/.bash_profile, ~/.zshrc, ~/.zprofile) to prevent accidental edits.
  • Unlock: Remove flags to allow editing and updates.
  • Status Verification: Verify locked/unlocked state of common shell config files and report results.

Quick Start

Lock your Bash and Zsh config files to prevent edits, and verify their locked status.

Frequently Asked Questions about shell-config-lock

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

FAQPage Schema
How do I lock shell config files to prevent unwanted edits?

You can lock shell config files by setting immutable flags on common dotfiles like ~/.bashrc and ~/.zshrc to prevent unwanted modifications. This applies to both Bash and Zsh environments, protecting user environments from unintended changes.

What is the best way to protect my bashrc and zshrc from accidental modification?

Protecting your bashrc and zshrc from accidental modification involves applying file flag guardrails to lock the configurations. The lock feature sets immutable flags on these local dotfiles to prevent accidental edits and safeguard your shell setup.

How do I check if a shell configuration file is locked?

To check if a shell configuration file is locked, use status verification to detect the locked state. This feature verifies the locked or unlocked state of common shell config files and reports the results for your Bash and Zsh environments.

Can I lock dotfiles for both Bash and Zsh environments?

Yes, you can lock dotfiles for both Bash and Zsh environments. The locking mechanism applies to individual users managing local dotfiles across both shells, covering common config files such as ~/.bash_profile, ~/.zshrc, and ~/.zprofile.

How do I unlock my shell config files when I need to update them?

To unlock your shell config files when you need to update them, use the safe unlock workflow to remove the immutable flags. This action removes the flags to allow editing and updates to your Bash and Zsh configuration files.