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-hideTags
Translated version includes tags in frontmatterSKILL.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 Term | Must 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 Input | Intent | Direct Execution |
|---|---|---|
| "Hide xxx" | Hide skill | |
| "View/list xxx" | Preview skills | |
| "Restore xxx" / "Unhide xxx" | Restore skill | |
| "Which skills are hidden?" | View hidden list | |
Term Explanations
| Term | Meaning | Corresponding Operation |
|---|---|---|
| Hide | Mark skill as hidden | |
| Restore | Cancel hiding, make skill visible again | |
| Preview/View/List | Only view skill list, no modifications | |
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 slashto 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.pyOperation 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 --foldersResource Index
- - Read/write configurations
scripts/config_manager.py - - Hide skills / View status of all skills (supports multi-folders)
scripts/hide_skill.py - - Restore skills
scripts/unhide_skill.py - - List all hidden skills (cross-folder)
scripts/list_hidden.py - - View operation history
scripts/list_history.py
Notes
- Prohibit self-hiding: skill-hide cannot hide itself
- Path normalization: Automatically unify to use forward slash
/ - 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
- will display the status of all configured folders when no
--show-allis specified--folder
- Duplicate-named skills: Skills with the same name can exist in different folders; all matching skills will be operated on when hiding/restoring
- 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 existJudgment Logic:
| File Existence | Status |
|---|---|
| ✅ Visible |
| ❌ Hidden |
Known Issues
- Windows console encoding issue: Chinese output of the script may appear garbled (does not affect actual functionality)
- Verification mechanism: File status should be verified after all hide/restore operations to ensure success
Quick Reference Table
| User Input | Ambiguous? | 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 |