coding
What it does
This skill helps an AI agent investigate and change code in a repository, then check the result. It is for people who want an assistant to make real code changes with care.
When to use it
- ✓When you want the agent to fix a bug or add a feature in a project folder.
- ✓When you need the agent to follow the project's own rules and test commands.
- ✓When you want a code change checked by running the project's tests before you use it.
Skill link
https://github.com/leon-ai/leon/blob/develop/skills/agent/coding/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you fix the broken date formatting in this project and run the tests to confirm it works?”
5 new skills a week. 1 minute to read.
How it works
The agent finds the relevant files, reads the project's instructions and makes the change. It then runs the project's tests and reports what it changed and what it checked.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Coding
Code directly with Leon's existing loop and tools. Respect scope: analysis does not authorize edits, commits, pushes or publication. Delegate only on owner request or applicable preference.
For delegation, use the owner's preferred available agent/interface. Pass the repository, task, instructions and authorized scope; inspect and verify results, not just prompt submission. If unavailable, explain briefly and continue directly within scope.
Repository and instructions
- Establish the exact workspace/cwd from the request and live observations. Read relevant manifests and nearby code; reuse helpers before adding abstractions.
- Before project commands or edits, inspect applicable
AGENTS.mdfiles from repository root through each target directory.file.readincludes them inrepositoryInstructionswith source reads; read missing instructions explicitly. Confirm full returned text, since shell success alone does not prove a file was read. Reuse complete returned instructions, including unchanged content referenced in earlier visible tool results, instead of rediscovering the same files. Apply their package manager and test commands to the baseline as well as final checks. Deeper rules override broader ones only in their subtree. For non-Git work, use the owner-selected boundary, excluding unrelated parent instructions. - In plan details, record workspace, instruction paths, constraints, and acceptance criteria with required checks from the request/references. Discover nested instructions before editing new directories. After compaction/continuation, reread applicable files in full before editing; summaries cannot replace current instructions.
- Inspect Git status and staged/unstaged diffs; record and preserve unrelated changed/untracked content. Never reset, clean, stage or commit owner work without authorization. Use an isolated worktree when concurrency or the requested workflow warrants it.
Investigate and change
- Select the functions needed for inspection, authorized edits and verification together from the tool index; reuse their schemas throughout the task. Expand discovery only when evidence requires another capability. Use bounded reads, ripgrep and available structural search. Trace definitions/callers and check installed dependencies; never invent symbols/APIs. Read package metadata from its manifest; respect package exports and resolve dependencies from their owning source rather than assuming a flat install layout.
- Batch independent reads of known files, searches and edits to different files in one response. Combine independent commands/checks when each result and exit status remains visible; keep dependent checks after their inputs exist. Include plan updates supported by prior evidence alongside the next independent action. Do not weaken verification or bypass dedicated tool safeguards to reduce call counts.
- Reproduce bugs before editing; use affected existing tests when baseline evidence is needed to distinguish existing failures from regressions. Run repository-required baseline checks even when an interactive reproduction already shows the bug; do not infer a full baseline suite requirement from a rule to run lint or relevant tests. Extend only meaningful coverage when authorized, and never weaken tests for a pass.
- Prefer
file.patchwith the current read's hash when available, unique exact context and unrelated changes preserved. For stale/ambiguous matches, reread and revise; never repeat unchanged patches or overwrite from partial views. - Use
file.writefor new files; overwriting requires complete current content. Follow project formatting and dependency rules. - Prefer
shell.executeCommandfor short finite commands/checks. Useshell.startSessionfor long checks, installs, servers, watchers and interactive programs so owner follow-ups can be handled without discarding running work. Supply the observed workspace cwd and use the project's commands and package manager. - Record session IDs and commands in the plan, follow output cursors and verify process status; starting is not completion/success. After follow-ups or interruptions, inspect retained work before restarting anything. Informational questions preserve the task and its sessions; stop affected sessions when the owner cancels or redirects work that is no longer applicable. Never invent handles, replay commands for output or send secrets through stdin.
Verify and finish
- Inspect test scripts be
FAQ
Will the agent commit or publish my code?
Not on its own. The skill says analysis does not allow commits, pushes or publishing unless you ask for them.
Does the agent follow project rules?
Yes. It reads the project instruction files and applies the package manager and test commands they name.
Can it use another agent for part of the work?
Only if you ask for it, or if your setup prefers it. Otherwise it works directly.
Details
Original description by the author
Investigate, implement and verify code changes directly in a repository using Leon's file, search and shell tools.
repo: leon-ai/leon
Popularity
- GitHub stars
- 18k
- Ranking position
- #10740
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
document-authoring
18kHelps your agent create charts, PDFs, Word files, spreadsheets and slide decks, then check each file before you receive it.
live-tutorial
18kLets your agent show a workflow in your app and turn the screenshots into an annotated MP4 tutorial video.
media-production
18kHelps your agent generate and edit images, vector art, audio and video, then check the finished files before delivering them.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.