char-index-skill — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited char-index-skill (Plugin) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Character-level index-based string manipulation as a Claude Code Skill.
LLMs generate text token-by-token and struggle with exact character counting. This skill provides precise index-based tools for test code generation, string parsing, and position-critical tasks.
Evolved from char-index-mcp. The MCP server is still supported — see MCP Server section.
Clone the repository:
git clone https://github.com/agent-hanju/char-index-skill.gitCopy skills/char-index-skill/ into your project's .claude/skills/ directory, or use it directly from the cloned repo.
Claude will automatically invoke the skill when you need character-level string operations. You can also call it explicitly with /char-index-skill.
All operations are available via:
python ${CLAUDE_SKILL_DIR}/scripts/char_ops.py <command> [options]See SKILL.md for the full command reference.
find-nth-char - Find nth occurrence of a characterfind-all-chars - Find all indices of a characterfind-nth-substring - Find nth occurrence of a substringfind-all-substrings - Find all occurrences of a substringsplit-at - Split string at multiple positionsextract - Extract substring by rangeextract-between - Extract text between two markersextract-batch - Extract multiple substrings by index rangesinsert - Insert text at specific positiondelete - Delete characters in rangereplace - Replace range with new textcount - Character statistics (total, letters, digits, etc.)# Find 3rd 'l'
python ${CLAUDE_SKILL_DIR}/scripts/char_ops.py find-nth-char \
--text "hello world" --char "l" --n 3
# {"index": 9}
# Split at positions
python ${CLAUDE_SKILL_DIR}/scripts/char_ops.py split-at \
--text "hello world" --indices "2,5,8"
# {"parts": ["he", "llo", " wo", "rld"]}
# Extract between markers
python ${CLAUDE_SKILL_DIR}/scripts/char_ops.py extract-between \
--text "<tag>content</tag>" --start-marker "<tag>" --end-marker "</tag>"
# {"content": "content", ...}
# Count characters
python ${CLAUDE_SKILL_DIR}/scripts/char_ops.py count --text "Hello World!"
# {"total": 12, "letters": 10, "digits": 0, "spaces": 1, "special": 1}See examples.md for more practical examples.
find-nth-* uses --n 1 for first occurrence-1 = last char, -5 = 5th from end[start, end) - start inclusive, end exclusivechar-index-skill/
├── skills/
│ └── char-index-skill/
│ ├── SKILL.md # Skill definition
│ ├── examples.md # Usage examples
│ └── scripts/char_ops.py # Implementation (12 operations)
├── char_index_mcp/ # MCP server (legacy)
│ ├── server.py
│ ├── char_ops.py # Synced copy
│ └── tests/
├── pyproject.toml # MCP package config
├── README.md
└── LICENSEgit clone https://github.com/agent-hanju/char-index-skill.git
cd char-index-skill
python -m venv .venv
.venv/Scripts/activate # or source .venv/bin/activate
pip install -e .
pytest char_index_mcp/tests/ -v
ruff check .
mypy char_index_mcp/The char-index-mcp package provides the same 12 operations as an MCP server for integration with Claude Desktop, Cursor, and other MCP clients. This is maintained for backward compatibility but the Claude Code Skill is the recommended approach.
# Install
pip install char-index-mcp
# Or run directly
uvx char-index-mcpConfiguration for Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"char-index": {
"command": "uvx",
"args": ["char-index-mcp"]
}
}
}MIT License - see LICENSE file for details
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.