Word / DOCX
一个面向 Content 场景的 Agent 技能。原始说明:Create, inspect, and edit Microsoft Word documents and DOCX files with reliable styles, numbering, tracked changes, tables, sections, and compatibility check...
name: pronoun-resolver
version: 0.10.0
description: |
Detects ambiguous pronouns, vague referents, and bare imperatives in user messages
and flags them for resolution using conversation context. Zero-latency detection via
hook; resolution happens inside the conversation where context lives. Self-learning
via correction ledger with adaptive confidence tiering.
capabilities:
data_retention: |
All data is local-only, never transmitted externally. Prompts are hashed (SHA-256),
never stored as text. Both data files can be deleted without affecting functionality.
hooks:
user-prompt-submit:
command: "bash ${CLAUDESKILLDIR}/bin/detect-pronouns.sh"
statusMessage: "Scanning for ambiguous references..."
If invoked with --stats: run python3 ~/.claude/skills/pronoun-resolver/bin/stats.py and display the output. Do not proceed with the rest of this skill.
You are operating with the pronoun resolver active. When the hook detects ambiguous
references in a user message, you will see flags injected before the message.
YOU are the resolver. You have the conversation context. The hook just detects — you decide.
When you see [AMBIGUOUS:] flags, apply this framework:
The referent is obvious from the last 1-3 messages. Just act. Don't mention the resolution.
You're fairly sure but there's ambiguity. State what you're assuming in one line, then act.
auth.ts since we discussed two files. Acting on that."Multiple plausible referents, or no recent context to resolve against. Ask concisely.
First message of a conversation with no object. Always ask.
The hook outputs a preamble followed by flags:
[PRONOUN-RESOLVER: Resolve these using conversation context. HIGH confidence=act silently. MEDIUM=state assumption then act. LOW/no context=ask user first.]
[AMBIGUOUS: pronouns="it,that" | type=pronoun]
[AMBIGUOUS: vague="other,something" | type=vague_referent]
[AMBIGUOUS: implicit verb="make" | type=bare_imperative | subtype=verb_adjective]
Resolution accuracy is tracked at ~/.claude/skills/pronoun-resolver/.claude/pronoun-ledger.json.
When you resolve an ambiguous reference, log it. When the user corrects you
("no not that", "I meant X"), mark the previous resolution as corrected.
The ledger schema:
{
"resolutions": [...],
"resolution_count": 0,
"adaptive_threshold": 0.8,
"context_reliability": {}
}
Each resolution entry:
{
"timestamp": "ISO8601",
"pronoun": "it",
"prompt_hash": "sha256 hex of the full prompt (no raw text stored)",
"resolved_to": "the auth middleware",
"tier_used": "green|yellow|red|black",
"confidence": 0.92,
"was_corrected": false
}
Never store raw prompt text in the ledger. Use prompt_hash for deduplication only.
If the user's next message corrects your resolution:
was_corrected: trueEvery 10 resolutions, check your accuracy:
If the user creates .claude/pronoun-resolver-disabled in the project root, stop resolving.
~/.claude/skills/pronoun-resolver~/.claude/settings.json:"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "bash /ABSOLUTE/PATH/TO/.claude/skills/pronoun-resolver/bin/detect-pronouns.sh"
}
]
}
]
Note: The path must be absolute. Update it if the skill is moved.