codecall 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,44 +1,68 @@
1
1
  # codecall
2
2
 
3
- `npx skills add GAURAV-1313/codecall` · Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Kiro, Copilot · no API key, nothing uploaded
3
+ **Understand the code your AI agent writes.**
4
+
5
+ [![npm version](https://img.shields.io/npm/v/codecall.svg)](https://www.npmjs.com/package/codecall)
6
+ [![license: MIT](https://img.shields.io/npm/l/codecall.svg)](LICENSE)
7
+
8
+ codecall is a skill for AI coding agents. After your agent builds something,
9
+ it teaches you the ideas behind the change using your own code, checks that
10
+ you can explain them, and gives you a one-page receipt. It can also walk you
11
+ through a request flow, or plant a bug for you to find.
12
+
13
+ Works in Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Kiro and Copilot.
14
+ No API key, no account, nothing uploaded.
4
15
 
5
16
  ![A codecall receipt: the change in a line, each idea marked could explain or could not, a score of 3 of 4](https://raw.githubusercontent.com/GAURAV-1313/codecall/main/docs/receipt.png)
6
17
 
7
- **codecall quizzes you on the code the agent just wrote.** When an
8
- implementation lands, it offers a four-minute session: it teaches the 2 to 4
9
- ideas behind the change using your actual code, checks each one with two
10
- questions, and ends with a one-page receipt you can keep or post. No API key,
11
- nothing uploaded, nothing remembered unless you keep the receipt.
18
+ ## Features
19
+
20
+ | Mode | Command | What you get |
21
+ | --- | --- | --- |
22
+ | **Learn** | `/codecall` | A 4-minute session on the 2 to 4 ideas behind the change your agent just made, two checks per idea, and a receipt with your score. |
23
+ | **Trace** | `/codecall trace POST /login` | One request followed from entry point to response, `file:line` by `file:line`, then a check on the steps most likely to hide a bug. |
24
+ | **Drill** | `/codecall drill src/orders medium` | A debugging round on your own project: one planted bug, only the symptom, hints on request, and your code restored with Git afterwards. |
25
+ | **Backend concept map** | automatic | About 80 backend concepts that keep server-side lessons consistent and point you to a free video chapter and official docs for anything you missed. |
26
+
27
+ You are always asked **Start Learning / Skip** before a session begins, and
28
+ nothing is taught without your yes.
12
29
 
13
30
  ## Install
14
31
 
15
- ```bash
16
- npx skills add GAURAV-1313/codecall
17
- ```
32
+ Pick one:
18
33
 
19
- Then type `/codecall` (or `$codecall` in Codex) after your agent finishes
20
- something. You are always asked **Start Learning / Skip** first.
34
+ | Method | Command | Best for |
35
+ | --- | --- | --- |
36
+ | Skills CLI | `npx skills add GAURAV-1313/codecall` | Any supported agent |
37
+ | npm | `npm install -g codecall` | Claude Code and Codex together |
38
+ | Claude Code plugin | `/plugin marketplace add https://github.com/GAURAV-1313/codecall`<br>`/plugin install codecall@codecall` | Getting offered a session automatically after meaningful changes |
21
39
 
22
- Want it to *offer* automatically after meaningful changes, not just when you
23
- ask? Install the plugin instead; it adds a small local hook that reminds the
24
- agent to check, and never decides for you:
40
+ The plugin is the only option that offers sessions by itself. It adds a small
41
+ local hook that reminds your agent to check whether a change is worth
42
+ learning from; it never starts a session without your yes.
25
43
 
26
- ```text
27
- /plugin marketplace add https://github.com/GAURAV-1313/codecall
28
- /plugin install codecall@codecall
29
- ```
44
+ For Codex, add the plugin with
45
+ `codex plugin marketplace add https://github.com/GAURAV-1313/codecall`, then
46
+ `codex plugin add codecall@codecall`.
30
47
 
31
- (Codex: `codex plugin marketplace add https://github.com/GAURAV-1313/codecall`
32
- then `codex plugin add codecall@codecall`. The plugin's command is
33
- `/codecall:codecall` in Claude Code.) `npm install -g codecall` also works and
34
- installs the skill for both Codex and Claude Code.
48
+ Restart your agent after installing.
35
49
 
36
- ## What a session looks like
50
+ ### Which command to type
37
51
 
38
- Say your agent just added login to your app.
52
+ | Installed via | Command |
53
+ | --- | --- |
54
+ | Skills CLI or npm | `/codecall` |
55
+ | Claude Code plugin | `/codecall:codecall` |
56
+ | Codex | `$codecall` |
57
+
58
+ Add `trace <flow>` or `drill [area] [easy|medium|hard]` after any of them.
59
+
60
+ ## Learn: quiz on what was just built
61
+
62
+ Say your agent just added login to your app:
39
63
 
40
64
  ```text
41
- You: /codecall
65
+ You: /codecall
42
66
 
43
67
  codecall: Implementation completed.
44
68
  Learning opportunity: this adds authentication middleware and a
@@ -47,127 +71,130 @@ codecall: Implementation completed.
47
71
 
48
72
  Start Learning / Skip
49
73
 
50
- You: Start Learning
74
+ You: Start Learning
51
75
 
52
76
  codecall: How confident are you with authentication middleware?
53
77
  [ Expert / Comfortable / Heard of it / Never learned ]
54
78
 
55
- You: Heard of it
79
+ You: Heard of it
56
80
 
57
81
  codecall: Let's start with why every request now passes through a check
58
82
  before reaching your account routes...
59
- (explains the idea in plain terms, using YOUR actual code)
83
+ (explains the idea using YOUR code)
60
84
 
61
85
  Quick check: if someone sends a request without logging in,
62
86
  what should happen?
63
87
 
64
- You: (answer)
65
-
66
- codecall: (tells you if you're right, and why, then moves to the next idea)
67
-
68
88
  ...
69
89
 
70
90
  codecall: Receipt: ./codecall/0007-auth-middleware.html
71
- Could explain 3 of 4. Keep it, print it, or post it.
91
+ Could explain 3 of 4.
72
92
  ```
73
93
 
74
- The receipt is one screen: the change in a line, each idea marked ✅ could
75
- explain or ❌ could not, the score, three points to remember, and the edge
76
- cases to check before you reuse the pattern somewhere else.
94
+ It adapts to your answers. Get one right and the next check is harder. Get one
95
+ wrong and it names the gap, explains it again from your code, and asks a fresh
96
+ question. It works for any change with a *why* behind it: retry logic, a
97
+ database index, a cache layer, a webhook handler.
77
98
 
78
- It is not just for auth. Retry logic with backoff, a new database index, a
79
- cache layer, a webhook handler: anything with a *why* behind it gets the same
80
- short format, grounded in what was actually built.
99
+ ## Trace: follow one flow
81
100
 
82
- ## Drill: debugging practice
101
+ ```text
102
+ /codecall trace POST /login
103
+ ```
104
+
105
+ codecall walks the request from where it enters your code to where it ends,
106
+ one `file:line` at a time, then shows the whole path as a single chain. It
107
+ finishes by checking you on the 2 or 3 steps where a bug would most likely
108
+ hide. It never edits code.
83
109
 
84
- For debugging interview rounds, `/codecall drill` runs one on your own project:
110
+ ## Drill: debugging practice
85
111
 
86
112
  ```text
87
113
  /codecall drill src/orders medium
88
114
  ```
89
115
 
90
- It plants **one** realistic bug (an off-by-one, a missing `await`, an
91
- unhandled empty case, a wrong status code), tells you only the symptom and how
92
- to reproduce it, and stays out of your way while you debug. Ask for a hint
93
- when you're stuck: where to look, then what to log, then the function, then
94
- the line. When you find it or give up, it shows the planted change, explains
95
- the fastest route to it, and restores the file with Git.
116
+ Built for debugging interview rounds, run on your own project:
96
117
 
97
- The drill receipt records found or missed, minutes, hints used, and one habit
98
- to work on. Difficulty is `easy` (it crashes near the bug), `medium` (wrong
99
- output one layer away) or `hard` (only some inputs, or silent).
118
+ 1. codecall plants **one** realistic bug: an off-by-one, a missing `await`, an
119
+ unhandled empty case, a wrong status code.
120
+ 2. You get only the symptom and how to reproduce it.
121
+ 3. Ask for a hint when stuck. Hints narrow step by step: where to look, what
122
+ to log, which function, which line.
123
+ 4. When you find it or give up, codecall shows the planted change, explains
124
+ the fastest route to it, and restores your file with Git.
100
125
 
101
- Drills need Git and a clean working tree, and only start when you ask: the
102
- automatic offer never proposes one. If your editor shows the edit for
103
- approval, approve it without reading it.
126
+ | Difficulty | What the bug looks like |
127
+ | --- | --- |
128
+ | `easy` | It crashes near the bug. |
129
+ | `medium` | Wrong output, one layer away from the cause. |
130
+ | `hard` | Only some inputs fail, or it fails silently. |
104
131
 
105
- ## Trace: follow one flow
132
+ Drills need Git and a clean working tree. They only start when you ask; the
133
+ automatic offer never proposes one. If your editor asks you to approve the
134
+ planted edit, approve it without reading it.
106
135
 
107
- `/codecall trace POST /login` walks one request from its entry point to the
108
- end, `file:line` by `file:line`, ends with the whole path as one chain, then
109
- checks you on the 2 or 3 hops where a bug would most likely hide. It never
110
- edits code, and it writes the usual receipt.
136
+ ## Backend concept map
111
137
 
112
- ## Why it exists
138
+ For server-side changes, codecall uses a built-in map of about 80 backend
139
+ concepts across HTTP, auth, databases, caching, queues, webhooks, real-time,
140
+ storage, testing and delivery. It keeps concept names consistent between
141
+ sessions, teaches prerequisites first, and draws on known misconceptions. You
142
+ never see the map, and changes outside its scope work exactly as before.
113
143
 
114
- It is easy to accept code from an AI assistant without fully understanding it.
115
- Reading the diff back is not the same as being asked about it. codecall asks,
116
- right after the change lands, while the reasons are still fresh, and leaves a
117
- receipt you can return to.
144
+ When you miss a mapped concept, your receipt adds one **Go deeper** line: the
145
+ matching chapter of Sriniously's free
146
+ [Backend from first principles](https://www.youtube.com/playlist?list=PLui3EUkuMTPgZcV0QhQrOcwMPcBCcd_Q1)
147
+ series, plus an official reference such as MDN, OWASP or the PostgreSQL docs.
148
+ A concept you missed before is more likely to come back in a later session.
118
149
 
119
- ## How the score is measured
150
+ The map's wording is codecall's own; it links to the videos and does not copy
151
+ them. codecall is not affiliated with or endorsed by the series' creator.
120
152
 
121
- Each session covers 2 to 4 ideas. An idea counts as *could explain* when you
122
- answer both of its checks correctly without a reteach. The score is `N of M`
123
- ideas, nothing else: no time-on-task, no mastery claim, no guess at what you
124
- would have known anyway. Earlier receipts in `./codecall/` add a streak line
125
- (sessions this week, running explain rate, drills found) and nothing more.
153
+ ## Receipts and scoring
126
154
 
127
- ## Backend concept map
155
+ Every session ends with a self-contained HTML file in `./codecall/` in your
156
+ project. A Learn receipt shows:
128
157
 
129
- For server-side changes, codecall uses a small built-in map of about 80
130
- backend concepts: HTTP, auth, databases, caching, queues, webhooks, real-time,
131
- storage, testing and delivery. It gives concepts stable names, orders them by
132
- what you need to know first, and supplies known misconceptions. You never see
133
- the map. If a change matches nothing in it, codecall works exactly as before.
158
+ - the change in one line, and the date
159
+ - each idea marked ✅ could explain or ❌ could not
160
+ - your score, `Could explain N of M`
161
+ - three points to remember and the edge cases to check before reusing the
162
+ pattern
134
163
 
135
- When you miss a mapped concept, the receipt adds one **Go deeper** line: the
136
- matching chapter of Sriniously's free
137
- [Backend from first principles](https://www.youtube.com/playlist?list=PLui3EUkuMTPgZcV0QhQrOcwMPcBCcd_Q1)
138
- series, plus an official reference (MDN, OWASP, PostgreSQL and similar). The
139
- map's wording is codecall's own and links to the videos; it does not copy
140
- them. codecall is not affiliated with or endorsed by the series' creator.
164
+ An idea counts as *could explain* only when you answer both of its checks
165
+ correctly without a reteach. There is no time-on-task score and no claim of
166
+ mastery. Earlier receipts add a streak line: sessions this week, your running
167
+ explain rate and drills found.
141
168
 
142
169
  ## Privacy
143
170
 
144
- - No API key, no account, no signup, no network call.
145
- - It uses the agent and conversation you already have open. There is no
146
- separate model call.
147
- - The receipt is the only thing it writes, into `./codecall/` in your
148
- project. Delete the folder to forget every session.
149
- - A drill is the one exception: it changes one file in your project for the
150
- length of the drill, then restores it with Git before writing the receipt.
151
- It never commits, stashes or branches.
152
- - The plugin's automatic-offer script runs entirely on your machine and only
153
- ever adds a text reminder; it cannot edit files or run commands.
154
- - On the Claude Code plugin, the read-only planning step runs in an isolated
155
- helper so it does not fill your main conversation. It can only read files
156
- and never talks to you.
171
+ - No API key, account, signup or network call. codecall runs inside the agent
172
+ and conversation you already have open.
173
+ - Receipts are the only files it writes, in `./codecall/`. Delete the folder
174
+ to forget every session.
175
+ - A drill is the one exception: it changes one file for the length of the
176
+ drill, then restores it with Git. It never commits, stashes or branches.
177
+ - The plugin's hook runs locally and only adds a text reminder; it cannot edit
178
+ files or run commands.
179
+ - On the Claude Code plugin, planning runs in a read-only helper so it does
180
+ not crowd your main conversation.
157
181
 
158
182
  ## Troubleshooting
159
183
 
160
- **Nothing happens after installing.** Restart the agent or start a new
161
- session; an open session does not pick up a fresh install.
184
+ **Nothing happens after installing.** Restart your agent or start a new
185
+ session; open sessions do not pick up new installs.
162
186
 
163
- **Which command?** `/codecall` after `npx skills add` or `npm install -g`;
164
- `/codecall:codecall` for the Claude Code plugin; `$codecall` in Codex.
187
+ **The command isn't found.** Check [which command to type](#which-command-to-type)
188
+ for how you installed it.
165
189
 
166
190
  **The plugin asked me to trust something.** That is the one-time review for
167
- the small local hook behind the automatic offer. Decline it and codecall still
168
- works; you type the command yourself.
191
+ the local hook behind the automatic offer. Decline it and codecall still
192
+ works; you just type the command yourself.
169
193
 
170
- ## For developers
194
+ **A drill won't start.** Commit or stash your changes first. Drills need a
195
+ clean Git working tree so they can restore your code exactly.
196
+
197
+ ## Contributing
171
198
 
172
199
  ```bash
173
200
  npm install
@@ -176,20 +203,17 @@ npm test
176
203
  claude plugin validate ./plugins/codecall
177
204
  ```
178
205
 
206
+ The skill lives in `plugins/codecall/skills/codecall/`. The TypeScript in
207
+ `src/` is an offline test harness for the session state machine, not the
208
+ product; see [ARCHITECTURE.md](ARCHITECTURE.md).
209
+
179
210
  The backend concept map lives in
180
211
  `plugins/codecall/skills/codecall/references/backend-map/`, one Markdown file
181
- per cluster. Edit those files, then run `node scripts/backend-map.mjs` to
182
- validate them and regenerate `index.md`; `npm test` fails on a stale index, a
183
- broken prerequisite, a timestamp that is not a real chapter start, or a link
212
+ per topic. After editing, run `node scripts/backend-map.mjs` to validate it
213
+ and regenerate `index.md`. `npm test` fails on a stale index, a broken
214
+ prerequisite, a video timestamp that isn't a real chapter start, or a link
184
215
  outside the documentation allowlist.
185
216
 
186
- The canonical skill lives in `plugins/codecall/skills/codecall/`. The
187
- TypeScript runtime in `src/` is an offline, deterministic test harness for the
188
- session state machine, not the product; see [ARCHITECTURE.md](ARCHITECTURE.md).
189
-
190
- Listings: Claude Code's [plugin directory submission form](https://clau.de/plugin-directory-submission);
191
- Codex via `platform.openai.com/plugins`.
192
-
193
217
  ## License
194
218
 
195
219
  [MIT](LICENSE)
package/package.json CHANGED
@@ -1,15 +1,23 @@
1
1
  {
2
2
  "name": "codecall",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
- "description": "Implementation-grounded adaptive learning skills for Codex and Claude Code.",
6
+ "description": "Understand the code your AI agent writes: a 4-minute quiz on each change, step-by-step flow traces, and planted-bug debugging drills. Claude Code, Codex, Cursor and more. No API key.",
7
7
  "keywords": [
8
- "codex",
9
8
  "claude-code",
10
- "skill",
9
+ "codex",
10
+ "cursor",
11
+ "gemini-cli",
12
+ "agent-skills",
13
+ "ai-coding",
14
+ "code-comprehension",
11
15
  "learning",
12
- "developer-education"
16
+ "quiz",
17
+ "debugging",
18
+ "interview-prep",
19
+ "developer-education",
20
+ "backend"
13
21
  ],
14
22
  "repository": {
15
23
  "type": "git",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codecall",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Adaptive implementation-grounded learning for Claude Code.",
5
5
  "author": {
6
6
  "name": "Gaurav",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codecall",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Adaptive implementation-grounded learning for Codex.",
5
5
  "author": {
6
6
  "name": "Gaurav",