Keyword Expansion
Researchkeyword-expansionKeyword Expansion is an Agent Skill for research published in the WILLOSCAR/research-units-pipeline-skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Expand and refine search keywords (synonyms, acronyms, exclusions) and update `queries.md`. **Trigger**: keyword expansion, synonyms, exclusions, queries.md, 关键词扩展, 同义词, 排除词. **Use when**: 检索覆盖不足/噪声过大,或主题别名很多,需要系统化扩展与收敛检索词。 **Skip if**: `queries.md` 已经能稳定检出覆盖面(无需扩大范围导致后续成本爆炸)。 **Network**: none. **Guardrail**: 保持可控的 query 数量;明确 exclusions;避免“无限扩展”。
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/WILLOSCAR/research-units-pipeline-skills/blob/HEAD/.codex/skills/keyword-expansion/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/keyword-expansion, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Skill: keyword-expansion
Goal
- Improve recall/precision of
queries.mdwithout drifting scope.
Inputs
queries.md- Optional:
DECISIONS.mdscope notes
Outputs
- Updated
queries.md
Procedure (MUST FOLLOW)
- Extract the current topic scope and exclusions.
- Propose keyword expansions (synonyms, related terms, acronyms) and add explicit exclusions for common false positives.
- Update
queries.mdwith a clear “why” note for each change.
Acceptance criteria (MUST CHECK)
-
queries.mdcontains updated keywords and excludes. - Changes do not contradict
DECISIONS.mdscope constraints.
Troubleshooting
Issue: keyword expansion causes scope drift
Fix:
- Re-read
DECISIONS.mdscope notes and add explicit exclusions inqueries.mdfor common false positives.
Issue: query count explodes and becomes unmanageable
Fix:
- Keep a small set of high-signal queries; merge synonyms into the same query where possible instead of adding many near-duplicates.