agentleFS
marconaemarconae/speq-skill/.claude/skills/speq-code-tools/SKILL.md

speq-code-tools

Skill56 starsChanged 59 days agoMITView on GitHub

Semantic code navigation and editing via Serena MCP — symbol-level tools required over grep/find/manual edits. Triggered by planner-agent, implementer-agent, implementer-expert-agent, code-reviewer, recorder-agent, and architecture-agent.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Call initial_instructions first, before any other Serena tool.

    line 12
  2. Very specific:

    If ToolSearch finds no Serena tools, carry on with the generic tools (Read, Grep, Edit).

    line 14
  3. Very specific:

    When Serena is available, you MUST use these instead of the generic alternative — do not fall back to Read/Grep/Edit/ls/find for anything …

    line 18

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Code Tools

Semantic code navigation and editing via Serena MCP, if available. The user installs Serena globally, so the tool prefix varies (for example mcp__serena__find_symbol). This skill refers to the tools by short name below.

Before First Use Each Session

  1. Call initial_instructions first, before any other Serena tool.
  2. These tools are deferred in this harness — a bare tool name has no loaded schema yet. Call ToolSearch with the query serena to find them, then load the ones you need (select:<full tool name>, comma-separated for several) before calling them.
  3. If ToolSearch finds no Serena tools, carry on with the generic tools (Read, Grep, Edit). Do not warn and do not stop.

Tool Preference

When Serena is available, you MUST use these instead of the generic alternative — do not fall back to Read/Grep/Edit/ls/find for anything this table covers.

TaskUseNot
List directorylist_dirls, find
Find filesfind_filefind, rg --files
File symbolsget_symbols_overviewrg "class|function"
Symbol definitionfind_symbolrg "function foo"
Symbol declarationfind_declarationrg guesswork
Symbol referencesfind_referencing_symbolsrg "foo("
Interface/method implementationsfind_implementationsrg "impl .* for"
LSP diagnostics for a fileget_diagnostics_for_filemanual build/check
Update functionreplace_symbol_bodyread/edit/write
Insert afterinsert_after_symbolread/edit/write
Insert beforeinsert_before_symbolread/edit/write
Rename symbolrename_symbolrg + manual edits
Delete symbolsafe_delete_symbolmanual delete + grep for refs
In-file text/regex replacereplace_contentread/edit/write
Multi-file pattern replacereplace_in_filesmultiple manual edits

Memory tools (write_memory, read_memory, list_memories, delete_memory, edit_memory, rename_memory) exist and are available, but this project's specs (specs/, specs/_plans/.../notes/) are the source of truth — they are not part of this workflow.

Workflow

Session start → initial_instructions
Explore → find_symbol, get_symbols_overview, find_declaration
Understand → find_referencing_symbols, find_implementations
Edit → replace_symbol_body, insert_*_symbol, replace_content, replace_in_files
Verify → find_referencing_symbols, get_diagnostics_for_file

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.