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/render.go
View on GitHubpackage main
import (
"encoding/json"
"io"
)
const (
Reset = "\x1b[0m"
Bold = "\x1b[1m"
)
// Renderer owns every byte the tool puts on stdout. It is handed the resolved
// Settings, so no rendering code re-decides whether colour is allowed.
type Renderer struct {
out io.Writer
color bool
json bool
}
func NewRenderer(out io.Writer, set Settings) *Renderer {
return &Renderer{out: out, color: set.Color, json: set.JSON}
}
func (r *Renderer) writeJSON(v any) error {
return json.NewEncoder(r.out).Encode(v)
}
// Paint wraps s in the codes and one Reset — or returns it untouched when
// colour is off.
//
// TODO: implement. Callers pad *before* painting: an escape sequence has no
// width, so %-10s on a painted string pads by bytes and ruins the columns.
func (r *Renderer) Paint(s string, codes ...string) string {
return s
}
// RenderScan writes the scan report: a JSON document, or a human table.
//
// TODO: JSON mode encodes the ScanResult itself. Text mode writes
//
// fmt.Sprintf("%-10s %6s %8s %10s", "ext", "files", "lines", "bytes")
//
// bold as a header, then one "%-10s %6d %8d %10d" row per extension, then the
// same row shape bold for "total". An empty tree prints "no files".
// Report write errors — a full disk is not a success.
func (r *Renderer) RenderScan(res ScanResult) error {
return nil
}
// RenderAuthors writes the author ranking.
//
// TODO: JSON mode writes the document {"authors":[…]} — not a bare array, which
// could never grow a field. Text mode writes "%6d %s" per author, or
// "no commits".
func (r *Renderer) RenderAuthors(list []Author) error {
return nil
}
// RenderVersion writes the build metadata patched in by -ldflags.
//
// TODO: JSON mode writes the BuildInfo document. Text mode writes
// "scout <version> (commit <commit>, built <date>, <go>, <platform>)".
func (r *Renderer) RenderVersion(info BuildInfo) error {
return 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: 470k | 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 |