Skip to content

feat(agent-skills): add karpathy-skills + auto-discover all marketplaces#831

Merged
JacobPEvans-personal merged 2 commits into
mainfrom
feature/karpathy-skills
May 30, 2026
Merged

feat(agent-skills): add karpathy-skills + auto-discover all marketplaces#831
JacobPEvans-personal merged 2 commits into
mainfrom
feature/karpathy-skills

Conversation

@JacobPEvans-personal
Copy link
Copy Markdown
Member

Restoring abandoned 17-day-old local branch.

Commits

44866a7 feat(agent-skills): add karpathy-skills + auto-discover all marketplaces

Summary

Adds forrestchang/andrej-karpathy-skills (113k stars) to both the Claude marketplace and the tool-agnostic agent-skills tree.

  • Claude: andrej-karpathy-skills@karpathy-skills enabled in Tier 5 (behavioral/workflow).
  • Agent-skills: refactored from hardcoded 5-marketplace list to auto-discovery via walkAllPatterns.

Opened as draft for review. Re-baseline against main before promoting.

Assisted-by: Claude noreply@anthropic.com

Adds forrestchang/andrej-karpathy-skills (113k★) to both the Claude
marketplace and the tool-agnostic agent-skills tree.

Claude: `andrej-karpathy-skills@karpathy-skills` enabled in Tier 5
(behavioral/workflow). One skill: karpathy-guidelines (Think Before
Coding, Simplicity First, Surgical Changes, Goal-Driven Execution).

Agent-skills: refactored from a hardcoded 5-marketplace list to
auto-discovery via `walkAllPatterns`. The walker tries flat /
.claude/skills / perPlugin layouts plus one-level subpath walks
("plugins", "external_plugins") against every input in
marketplaceInputs. No marketplace names are hardcoded in the module —
it is fully decoupled from Claude's registry and ready for the
planned module split. Future skill-providing marketplaces require zero
agent-skills edits.

lib.optionals used instead of if/then/else in walkAllPatterns to keep
the edit within the inline-script-guard threshold.

Assisted-by: Claude <noreply@anthropic.com>
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request integrates the karpathy-skills repository and refactors the skill discovery mechanism in modules/agent-skills/default.nix to automatically scan all marketplace inputs using a generic pattern-matching approach. Feedback was provided to enhance the robustness of the directory traversal logic by verifying entry types before processing them to avoid potential evaluation errors.

Comment thread modules/agent-skills/default.nix
@JacobPEvans-personal JacobPEvans-personal marked this pull request as ready for review May 24, 2026 15:37
Cache the root directory listing once and verify each subpath
("plugins", "external_plugins") is itself a directory before
recursing into discoverSkills/discoverClaudeCommands. builtins.readDir
throws on regular files, so the prior pathExists check could fail
loudly if a marketplace happened to ship a file with one of those
names. Addresses Gemini review feedback.
@JacobPEvans-personal JacobPEvans-personal merged commit ab45a6c into main May 30, 2026
6 of 9 checks passed
@JacobPEvans-personal JacobPEvans-personal deleted the feature/karpathy-skills branch May 30, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant