Not loaded · from literate-ai
Generates a self-contained Go program that reads JSON arguments, validates them, and outputs deterministic JSON. Useful for Literate AI workflow tasks requiring portable, auditable Go source.
Claude Code won't load this skill
It ships in literate-ai at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Implement the selected Go Flavor as straightforward, auditable Go source rooted at
source/main.go, package main, compilable by one direct go build source/main.go
invocation with no go.mod. Import only standard-library packages and the
declared local ./tests package. Put the native generated-test implementation at
source/tests/litai_runtime.go as package tests; import it unconditionally
from the application. Pass the real application behavior to its exported test
runner as a callback, without importing main from the test package. Dispatch
the Standard --litai-test and --litai-smoke modes before ordinary argument parsing
without reading source/tests/manifest.json. Do not gate this file behind a
//go:build tag: the exported runtime artifact must contain it.
portable-application-implementation fixes the general argument contract (one JSON
array argument, spread as positional arguments). In Go terms: parse os.Args[1] with
encoding/json — never the raw os.Args slice, which still carries the program name at
index 0 — and unwrap the array's first element when a specification describes "one JSON
object as the argument" rather than passing the array itself to object-field code.
Read that one complete UTF-8 JSON arguments array from os.Args[1], validate every
shape and domain invariant used by the specification, perform the general computation
rather than matching examples, and write exactly one deterministic JSON value plus a
trailing newline to standard output using encoding/json. Keep output field ordering
stable where the specification makes exact comparison observable — use an ordered
struct with json tags rather than a bare map[string]any whenever field order is
externally observable. Send concise failures only to standard error and exit nonzero
via os.Exit.
Use only errors/fmt-wrapped standard-library error values; do not introduce a
third-party error-handling package. Keep every exported behavior traceable to the
selected specification; do not add defensive branches for scenarios the specification
does not describe.
For internal/private helper functions (not the Component's exported entry point already
covered by source/tests/manifest.json) with a non-obvious precondition, postcondition,
or invariant relied on by a caller — one whose violation would produce silently wrong
output rather than an obvious crash — check the condition explicitly at the point it must
hold and panic() with a message identifying which invariant failed
(if idx >= len(items) { panic("resolveOffset: idx out of range") }), matching Go's own
standard-library and style-guide convention that panic is reserved for programmer error
and broken invariants, not for ordinary or expected failure. Never use panic for data
that originates outside the process (the JSON arguments array from os.Args[1], file
contents) or for any condition a caller could reasonably trigger and recover from — that
case must keep returning an errors/fmt-wrapped error value per this skill's existing
error-handling rule; reserve panic exclusively for conditions that indicate this
Component's own generated code has a bug, never for validating input. Do not add a check
for an invariant Go's type system already enforces structurally. Do not gate a contract
check behind a flag, build tag, or environment variable — an unreachable check provides no
evidence. A panic raised during source/tests/litai_runtime.go or --litai-test execution
is an ordinary generated-test failure, not a new failure channel; repair it the same way
any other failing manifest case is repaired before completing generation.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (jordanhubbard/literate-ai) — no native marketplace selected
npx claudepluginhub p/jordanhubbard-literate-ai41 skills in this plugin
/agentShared rules for Literate AI agent skills nested under skills/agent. Use when authoring or following any agent skill: wrap deterministic Python or litai commands, keep SKILL.md as routing and judgment, and treat nested skills as deltas of their parent directory.
/api-surfacePublic API surface. Use for Literate AI workflow tasks./architectureArchitecture boundaries. Use for Literate AI workflow tasks./backend-applicationFundamental back-end generation indexed off selected language Flavors. Use for Literate AI workflow tasks that select a server-side parent skill. Nested Python and Rust skills own ecosystem chapters./bazel-build-systemBazel-preferred build-system design. Use for Literate AI workflow tasks./behavior-stateBehavior and state. Use for Literate AI workflow tasks.Other plugins' skills for the same job