Trace one behaviour through a codebase from its entry point to its last effect, hop by hop, and mark every place where the trail is hard to follow. Changes nothing. Use for debugging and for learning unfamiliar code: "trace what happens when a user signs up", "where does this email get sent from", "why did this value end up wrong", "walk me through this request", /goodcode-trace.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Goodcode Trace?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/matasurbonavicius-goodcode-trace)
---
name: goodcode-trace
description: >
Trace one behaviour through a codebase from its entry point to its last
effect, hop by hop, and mark every place where the trail is hard to follow.
Changes nothing. Use for debugging and for learning unfamiliar code: "trace
what happens when a user signs up", "where does this email get sent from",
"why did this value end up wrong", "walk me through this request",
/goodcode-trace.
---
# GoodCode trace
This is the walk of GC-13, done for one behaviour. Read the standard first:
`../../CODE_ARCHITECTURE.md` from this skill's base directory.
## The walk
1. **Find the entry point.** Start from the heart (GC-10): the route, command,
schedule or subscription that sets this behaviour off. If no single place
lists it, say so, and say how you found it instead.
2. **Follow by name.** Go from each call to the code that runs. Read it; do not
guess from its name. At each hop, note:
- what comes in and what goes out,
- whether it decides or does (GC-11),
- every effect: a write, a send, a spawn, a queued job, a change to shared
state.
3. **Stop at the last effect.** If the behaviour goes on in another process or
after a queue, say where it continues, and follow it only if asked.
## What to mark
Mark a hop when the trail breaks or forks:
- You had to search instead of follow: dispatch on a string, a handler found by
convention, a hook, a patch (GC-13).
- An effect the names did not announce (GC-12).
- Work started outside the heart (GC-10).
- A place where a failure would go quiet: a catch, a default, a filter
(GC-24, GC-27).
- State read here and written somewhere else you cannot see from here (GC-18).
When tracing a bug, these marks are where to look first. A wrong value usually
enters at an unchecked door (GC-19) or is produced by a fallback (GC-24).
## Output
```
Trace: POST /signup → welcome email
1. heart.py:14 route registered: POST /signup → handle_signup
2. signup/handle.py:8 handle_signup: parses the form (door), calls create_account
3. accounts/create.py:21 create_account: decides, pure
4. accounts/store.py:40 save: EFFECT, writes accounts row
5. accounts/store.py:52 ⚠ GC-12: save also enqueues send_welcome_email; nothing above says so
6. mail/welcome.py:11 send_welcome_email: EFFECT, sends through the mail provider
Hops: 6. Marks: 1.
```
Give every hop as `file:line`. After the trace, answer the question that was
asked in one or two sentences. If it was a bug hunt, name the most likely hop
and what to check there.