Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
- `cmd/`: Cobra-based CLI commands (`build`, `serve`, `init`, `freeze`, `test`, etc.).
Sign in to like and favorite skills
cmd/: Cobra-based CLI commands (build, serve, init, freeze, test, etc.).document/: Core build pipeline (config, parsing, templates, images, URIs).cliutils/: Small CLI helpers (printing, prompts).testdata/ and document/testdata/: Input/fixture files for tests.main.go: Entrypoint wiring version info to the CLI..github/workflows/: CI running go test and a release build.go test ./...: Run all unit tests. Add -race locally for data race checks.go run . --help: Preview CLI usage; try commands like go run . build -s.go build -o w .: Compile the CLI locally.go build -ldflags="-X 'main.version=$(git describe --tags --always)'" -o w ..go fmt ./... and go vet ./... before sending PRs.go fmt and keep imports tidy.snake_case.go.fmt.Errorf("doing X: %w", err)) and log via slog where appropriate.-v/--verbose, -q/--quiet).testing package; name files *_test.go and tests TestXxx.testdata/.go test ./... (and -race locally) before committing.fix reloader nil channel, feat: add build summary.(#123)). Squash trivial fixups.cmd/root.go; core build logic lives in document/ (via Substructure.ExecuteAll).build -s serves dist/ on localhost:8100 with live reload.