Agent Skill¶
MFS includes a reusable agent skill at:
The skill teaches an agent when to use MFS search, when to browse with bounded context, and when native shell tools are still the better choice.
What the skill contains¶
SKILL.mdis the entry point: trigger guidance, decision tree, anti-patterns.command-reference.mdexplains command syntax and options.workflow.mdexplains the search-plus-browse loop.candidate-selection.mdexplains how to choose between close candidates.
The skill intentionally does not include scripts or platform-specific metadata.
It only needs shell access to the mfs command.
Install for Codex¶
Codex reads user skills from $HOME/.agents/skills and repo-scoped skills from
.agents/skills.
User-level install:
Repo-scoped install:
Then invoke it explicitly with $mfs, or let Codex choose it when a task
matches the skill description.
Install for Claude Code¶
Claude Code supports local skills in a .claude/skills directory.
Use the skill when asking Claude Code to search, inspect, or verify local indexed files.
Use with other shell-based agents¶
For agents without native skill discovery, provide skills/mfs/SKILL.md as a
system or developer instruction and make the files under
skills/mfs/references/ available as supporting references.
The agent needs:
- shell access
mfsonPATH- an indexed target folder, or permission to run
mfs add <path>
Example prompts¶
Use MFS to answer this question from the local docs corpus. Verify the final
answer with file paths and line ranges.
Use the MFS skill to search memory logs for the prior decision about queue
payloads, then inspect the surrounding context.
Operating model¶
The skill follows the same model as MFS itself:
- use semantic search to locate candidates
- use progressive browse to understand structure
- use line ranges to verify exact evidence
- use native tools for exact literals and filename patterns
This keeps the agent from choosing between two poor extremes: reading whole files too early or trusting a single search chunk without context.