build-and-release
Skill4 starsChanged 30 days agoMITView on GitHub
Use when building Noctra locally, cross-compiling for Raspberry Pi, validating GoReleaser, or cutting a tagged release with cross-platform archives.
- Reads credentials
- Commits and pushes
3 other projects use a version of this.
Adopted by
Most recently taken up by
- ahmadAlMezaal/noctraword for word, first seen Oct 15, 2026
- Techthos/yourdatatheir own version, first seen Jul 26, 2026
- Techthos/webhotelier-mcptheir own version, first seen Jul 24, 2026
Other versions3 projects use a version of this.
Word for word · 1
- ahmadAlMezaal/noctra★ 3100% same
Edited · 0
None found.
Wrote their own version · 2
- Techthos/webhotelier-mcp★ 0same name
- Techthos/yourdata★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-backendsSkill
- architectureSkill
- auto-iterateSkill
- dashboardSkill
- github-identitySkill
- namingSkill
- setup-and-configSkill
- sweepsSkill
- troubleshootingSkill
- writing-good-ticketsSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this playbook for local builds, Raspberry Pi binaries, and official releases.
- Distinctive: line 28
Run the standard checks:
- Very specific: line 35
If golangci-lint is available, run:
- Very specific: line 80
All mutable state goes under one /data volume via REPOS_BASE / WORKTREE_BASE / LOG_DIR / STATE_DB (plus legacy STATE_FILE as the one-time …
- Distinctive: line 93
Before changing release config, validate locally:
- Distinctive: line 115
create an annotated tag at the merge commit and push it.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Build And Release Noctra
Use this playbook for local builds, Raspberry Pi binaries, and official releases.
Local Development Build
make build
# equivalent:
go build -o noctra ./cmd/noctraRun the binary:
./noctra version
./noctra doctor
./noctraVerification Before Shipping
Run the standard checks:
go test ./...
go vet ./...If golangci-lint is available, run:
golangci-lint runThe repository uses .golangci.yml v2 with standard linters plus gofmt.
Raspberry Pi Cross-Compile
For Pi 4/5 with a 64-bit OS:
GOOS=linux GOARCH=arm64 go build -o noctra ./cmd/noctra
scp noctra pi@your-pi:/srv/noctra/For Pi 3 or 32-bit Raspberry Pi OS:
GOOS=linux GOARCH=arm GOARM=7 go build -o noctra ./cmd/noctra
scp noctra pi@your-pi:/srv/noctra/The Makefile also has:
make build-piwhich produces an arm64 binary named noctra-pi.
Systemd Host Upgrade
On a host running Noctra as a systemd --user service, make update pulls main, builds to a side file, atomically swaps it into place (safe while the old process is still executing) and restarts noctra.service. A failed build leaves the previous binary intact. make start / stop / restart / status / logs wrap systemctl --user and journalctl --user-unit=noctra.service -f.
On an installed host (release binary, no checkout), operate the service through the CLI: noctra update (add --restart to restart afterwards), noctra start / stop / restart / status and noctra logs. Recommend these over raw systemctl --user commands, which they wrap.
The startup banner (pipeline.banner) prints the resolved runtime config — repos, trigger, agent backend (p.agent.Label() + CLI), review gate, auto-iterate, notifications, GitHub identity — so a restart's make logs shows exactly what is live. Keep new operationally significant config visible there.
Docker Image
Dockerfile is multi-stage: a golang stage compiles the static binary, and a node:24-bookworm-slim runtime adds git, gh and the Claude, Codex and Copilot agent CLIs (@anthropic-ai/claude-code, @openai/codex, @github/copilot, via npm; Antigravity's agy is not included) — Noctra shells out to them, so the image can't be scratch.
docker-entrypoint.shsets a default git identity and wiresGH_TOKENinto git/gh; a fresh container has neither (both were once silently inherited from the dev's machine).- All mutable state goes under one
/datavolume viaREPOS_BASE/WORKTREE_BASE/LOG_DIR/STATE_DB(plus legacySTATE_FILEas the one-time JSON migration source). - Container auth is API-key based (no interactive login).
.github/workflows/docker.ymlbuilds on PRs and builds + pushes multi-arch (amd64/arm64) to GHCR onmainand tags.- Cloud templates consuming the image sit at the repo root:
fly.toml,render.yaml,railway.json,deploy/digitalocean-cloud-init.yaml.
docker build -t noctra:local .GoReleaser Validation
Releases are configured in .goreleaser.yaml and .github/workflows/release.yml.
Before changing release config, validate locally:
goreleaser check
goreleaser release --snapshot --clean --skip=publishGoReleaser builds:
- Linux
amd64,arm64, andarmv7. - macOS
amd64andarm64. - Archives and checksums.
The main.version variable is stamped through -ldflags "-X main.version=...".
Cutting A Release
Label-driven (default)
Merging a PR to main runs .github/workflows/tag-on-merge.yml:
- exactly one
release:major/release:minor/release:patchlabel → compute the next semver from the latestv*tag; no label → no-op; several → fail; - create an annotated tag at the merge commit and push it;
- run GoReleaser inline.
GoReleaser runs inside tag-on-merge because tags pushed with GITHUB_TOKEN don't trigger other workflows, so release.yml would never fire.
Manual
git tag vX.Y.Z
git push origin vX.Y.Z.github/workflows/release.yml publishes on any pushed v* tag — for hotfixes, backdates or testing.
Changelog
GitHub Release notes are the changelog, generated by GoReleaser from Conventional Commits (Features, Bug Fixes, Performance, Refactoring; docs:/test:/chore:/ci: excluded). CHANGELOG.md only points at the Releases page.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

