qtsone/learning / skills/tutor
tutor
FlaggedTurn this agent into a personal programming tutor with a versioned 0-to-expert curriculum (Go available; more languages coming). Use when the user wants to learn a programming language, start or resume lessons, get their exercise code graded, check learning progress, or contribute curriculum fixes — e.g. "/tutor go", "/tutor resume", "teach me Go", "continue my lessons", "grade my exercise".
curriculum/content/focus/cli-tooling/capstone/exercise/authors.go
View on GitHubpackage main
import (
"context"
"errors"
)
// ErrVCS reports that the version-control command failed — it was missing, or
// it exited non-zero. Callers match the sentinel; the message carries the
// child's own words.
var ErrVCS = errors.New("vcs command failed")
type Author struct {
Name string `json:"name"`
Commits int `json:"commits"`
}
// Authors ranks commit authors in dir by shelling out to the configured VCS
// command: `git log --format=%an`, one author name per line.
//
// The command lives in App.Git rather than being the literal string "git",
// which is what lets a test point it at a helper process instead.
//
// TODO: implement it with os/exec.
// - exec.CommandContext, so a cancelled context kills the child — and refuses
// to start it at all when the context is already cancelled.
// - cmd.Dir is the directory to inspect. Capture stdout and stderr into
// *separate* buffers: the child's diagnostics are not your data.
// - When Run fails, ask why before asking how. A cancelled child dies of a
// signal, so its ExitError says "killed" — true, and useless; ctx.Err() is
// the reason, and it must reach the caller intact.
// - An *exec.ExitError means the child ran and refused: report ErrVCS with
// its exit code and the first line of its stderr. Anything else means it
// never started: report ErrVCS too, but say so differently.
// - Rank busiest first, ties by name, truncate to limit (<= 0 means all), and
// never return nil — an empty slice encodes as [], a nil one as null.
func (a *App) Authors(ctx context.Context, dir string, limit int) ([]Author, error) {
return nil, nil
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |