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.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- speq-adr-rulesSkill
- speq-auditSkill
- speq-cliSkill
- speq-code-guardrailsSkill
- speq-code-reviewSkill
- speq-design-philosophySkill
- speq-ext-researchSkill
- speq-git-disciplineSkill
- speq-git-operationsSkill
- speq-implement-prSkill
- speq-implementSkill
- speq-missionSkill
- speq-planningSkill
- speq-plan-prSkill
- speq-plan-reviewSkill
- speq-planSkill
- speq-recordSkill
- speq-spec-mergeSkill
- speq-writing-guardrailsSkill
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
- Very specific: line 12
Call initial_instructions first, before any other Serena tool.
- Very specific: line 14
If ToolSearch finds no Serena tools, carry on with the generic tools (Read, Grep, Edit).
- Very specific: line 18
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 …
≈ “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.
Files
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
- Call
initial_instructionsfirst, before any other Serena tool. - These tools are deferred in this harness — a bare tool name has no loaded schema yet. Call
ToolSearchwith the queryserenato find them, then load the ones you need (select:<full tool name>, comma-separated for several) before calling them. - If
ToolSearchfinds 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.
| Task | Use | Not |
| List directory | list_dir | ls, find |
| Find files | find_file | find, rg --files |
| File symbols | get_symbols_overview | rg "class|function" |
| Symbol definition | find_symbol | rg "function foo" |
| Symbol declaration | find_declaration | rg guesswork |
| Symbol references | find_referencing_symbols | rg "foo(" |
| Interface/method implementations | find_implementations | rg "impl .* for" |
| LSP diagnostics for a file | get_diagnostics_for_file | manual build/check |
| Update function | replace_symbol_body | read/edit/write |
| Insert after | insert_after_symbol | read/edit/write |
| Insert before | insert_before_symbol | read/edit/write |
| Rename symbol | rename_symbol | rg + manual edits |
| Delete symbol | safe_delete_symbol | manual delete + grep for refs |
| In-file text/regex replace | replace_content | read/edit/write |
| Multi-file pattern replace | replace_in_files | multiple 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_fileDoes 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
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.

