skill-hide

Original🇨🇳 Chinese
Translated
5 scriptsChecked / no sensitive code detected

Used to hide or restore skills; supports single or batch operations; manages skill parent folder paths; prevents self-hiding; supports multi-directory search and specified directory operations; supports one-click hiding/restoring of all skills. Use this skill when users need to hide or restore skills.

3installs
Added on

NPX Install

npx skill4agent add steelan9199/wechat-publisher skill-hide

SKILL.md Content (Chinese)

View Translation Comparison →

Skill Hide Manager

⚠️ Mandatory Rules (AI Must Comply)

Rule 1: Ambiguous Terms Must Be Confirmed

When user input contains the following ambiguous terms, do not perform any operations directly; you must first confirm with the user:
Ambiguous TermMust Confirm
"display"✅ Must confirm
"show"✅ Must confirm
Correct Process:
User: "Display all skills"
AI:  "'Display' has two meanings:
     [1] Restore (unhide) skills
     [2] View/list skill list
     Please reply with 1 or 2:"
Prohibited Incorrect Behaviors:
  • ❌ Directly list skills
  • ❌ Directly restore skills
  • ❌ Assume user intent

Rule 2: Non-Ambiguous Terms Are Executed Directly

User InputIntentDirect Execution
"Hide xxx"Hide skill
hide_skill.py xxx
"View/list xxx"Preview skills
--show-all
"Restore xxx" / "Unhide xxx"Restore skill
unhide_skill.py xxx
"Which skills are hidden?"View hidden list
list_hidden.py

Term Explanations

TermMeaningCorresponding Operation
HideMark skill as hidden
hide_skill.py
RestoreCancel hiding, make skill visible again
unhide_skill.py
Preview/View/ListOnly view skill list, no modifications
--show-all

Prerequisites

  • Dependencies: Python standard library, no additional dependencies required

Configuration Management

Configure the skill parent folder path on first use.

Configuration Methods

Path Format Note: Use forward slash
/
to be compatible with Windows CMD, PowerShell, and Unix-like shells (Git Bash, MSYS2, WSL)
bash
# Add a single path
python skill-hide/scripts/config_manager.py --add "C:/path/to/skills"

# Add multiple paths
python skill-hide/scripts/config_manager.py --add "C:/path1" --add "D:/path2"

# Override and set all paths (comma-separated)
python skill-hide/scripts/config_manager.py --set "C:/path1,D:/path2,E:/path3"

# List current configuration
python skill-hide/scripts/config_manager.py --list

# Clear all configurations
python skill-hide/scripts/config_manager.py --clear

# Run without parameters to display current configuration and reference paths
python skill-hide/scripts/config_manager.py

Operation Steps

Hide Skills

bash
# Hide a single skill
python skill-hide/scripts/hide_skill.py <skill-name>

# Hide multiple skills
python skill-hide/scripts/hide_skill.py <skill1> <skill2>

# Hide all skills (all configured folders)
python skill-hide/scripts/hide_skill.py --all

# Hide all skills in a specified folder
python skill-hide/scripts/hide_skill.py --all --folder <path>

# Specify folder
python skill-hide/scripts/hide_skill.py <skill-name> --folder <path>

Restore Skills

bash
# Restore a single skill
python skill-hide/scripts/unhide_skill.py <skill-name>

# Restore multiple skills
python skill-hide/scripts/unhide_skill.py <skill1> <skill2>

# Restore all skills (all configured folders)
python skill-hide/scripts/unhide_skill.py --all

# Restore all skills in a specified folder
python skill-hide/scripts/unhide_skill.py --all --folder <path>

# Specify folder
python skill-hide/scripts/unhide_skill.py <skill-name> --folder <path>

Preview Skills (View Only, No Modifications)

bash
# View skill status of all configured folders (multi-folder scenario)
python skill-hide/scripts/hide_skill.py --show-all

# View skill status of a specified folder
python skill-hide/scripts/hide_skill.py --show-all --folder <path>

# View all hidden skills (across all configured folders)
python skill-hide/scripts/list_hidden.py

# View operation history
python skill-hide/scripts/list_history.py

# View list of folders that have been operated on
python skill-hide/scripts/list_history.py --folders

Resource Index

  • scripts/config_manager.py
    - Read/write configurations
  • scripts/hide_skill.py
    - Hide skills / View status of all skills (supports multi-folders)
  • scripts/unhide_skill.py
    - Restore skills
  • scripts/list_hidden.py
    - List all hidden skills (cross-folder)
  • scripts/list_history.py
    - View operation history

Notes

  1. Prohibit self-hiding: skill-hide cannot hide itself
  2. Path normalization: Automatically unify to use forward slash
    /
  3. Multi-directory support:
    • Multiple skill parent folder paths can be saved in the configuration file
    • When hiding/restoring skills, all configured folders will be searched
    • --show-all
      will display the status of all configured folders when no
      --folder
      is specified
  4. Duplicate-named skills: Skills with the same name can exist in different folders; all matching skills will be operated on when hiding/restoring
  5. Configuration file:
    skill-hide/.skill-config.json

⚠️ Important: AI Usage Guide

How to Determine if a Skill is Hidden

Do not rely solely on tool output; you must verify through the file system:
bash
# Correct: Directly check file existence
ls -la skill-folder/
# Visible state: SKILL.md exists
# Hidden state: SKILL.md.hide exists, SKILL.md does not exist
Judgment Logic:
File ExistenceStatus
SKILL.md
exists
✅ Visible
SKILL.md.hide
exists and
SKILL.md
does not exist
❌ Hidden

Known Issues

  1. Windows console encoding issue: Chinese output of the script may appear garbled (does not affect actual functionality)
  2. Verification mechanism: File status should be verified after all hide/restore operations to ensure success

Quick Reference Table

User InputAmbiguous?AI Action
"Hide xxx"Execute hide directly
"View/list xxx"Execute preview directly
"Restore/Unhide xxx"Execute restore directly
"Display xxx"Must confirm
"Show xxx"Must confirm
"Which skills are hidden?"Execute list_hidden.py directly