ignore
Original:🇺🇸 English
Translated
Manage global ignore patterns for lint-relative-paths. TRIGGERS - statusline ignore, add ignore pattern, lint ignore, path lint exclude.
17installs
Sourceterrylica/cc-skills
Added on
NPX Install
npx skill4agent add terrylica/cc-skills ignoreTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Global Ignore Patterns
Manage global ignore patterns for the linter.
lint-relative-pathsPurpose
Some repositories intentionally use relative paths in markdown (e.g., )
instead of repo-root paths (e.g., ). This command manages a global ignore
file that skips path validation for matching workspaces.
../docs/file.md/docs/file.mdActions
| Action | Description | Example |
|---|---|---|
| Add a pattern to the global ignore file | |
| Show current patterns | |
| Remove a pattern from the ignore file | |
Pattern Matching
Patterns use substring matching. A pattern matches if the workspace path contains the pattern.
Example: Pattern matches:
alpha-forge/Users/user/projects/alpha-forge/Users/user/eon/alpha-forge.worktree-feature-x/home/user/code/alpha-forge-v2
Ignore File Location
~/.claude/lint-relative-paths-ignoreLines starting with are comments.
#Execution
Skip Logic
- If action + pattern provided -> execute directly
- If only provided -> show patterns immediately
list - If no arguments -> use AskUserQuestion flow
Workflow
- Check Current State: Run to show existing patterns
list - Action Selection: Use AskUserQuestion to select action:
- "Add a new pattern" -> prompt for pattern
- "Remove an existing pattern" -> show current patterns to select
- "Just view current patterns" -> display and exit
- Pattern Input: For add/remove, AskUserQuestion with examples
- Execute: Run the management script
- Verify: Confirm changes applied
AskUserQuestion Flow (No Arguments)
When invoked without arguments, guide the user interactively:
Question: "What would you like to do with lint-relative-paths ignore patterns?"
Options:
- "Add pattern" -> "Add a new repository pattern to skip path linting"
- "List patterns" -> "Show all current ignore patterns"
- "Remove pattern" -> "Remove an existing pattern from the ignore list"For "Add pattern":
Question: "Enter the repository pattern to ignore"
Note: Patterns use substring matching. Example: 'alpha-forge' matches any path containing 'alpha-forge'.Direct Execution (With Arguments)
Parse and run the management script:
$ARGUMENTSbash
/usr/bin/env bash << 'IGNORE_SCRIPT_EOF'
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/cc-skills/plugins/statusline-tools}"
bash "$PLUGIN_DIR/scripts/manage-ignore.sh" $ARGUMENTS
IGNORE_SCRIPT_EOFManual Editing
The ignore file can also be edited manually:
bash
# View current patterns
cat ~/.claude/lint-relative-paths-ignore
# Add a pattern manually
echo "my-repo-pattern" >> ~/.claude/lint-relative-paths-ignoreTroubleshooting
| Issue | Cause | Solution |
|---|---|---|
| Pattern not matching | Substring match is strict | Use broader pattern (e.g., |
| Ignore file not found | ~/.claude doesn't exist | Create with |
| Permission denied | File not writable | Check file permissions with |
| Script not found | Plugin not installed | Reinstall plugin from marketplace |