lythoskill-red-green-release
User-acceptance-driven release workflow using heredoc patch files.
Skill by lythos-labs
Chalk Labs
Need help deploying lythoskill-red-green-release?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/lythos-labs-lythoskill-red-green-release
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/lythoskill-red-green-release
What's inside
- Skill name
lythoskill-red-green-release- Description
- User-acceptance-driven release workflow using heredoc patch files. Each iteration produces a timestamped pr-<timestamp>-<desc>.sh that self-archives after execution. No tag without explicit user LGTM. Supports rollback via archived backups.
- License
- MIT
- Instructions
- 66 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: "lythoskill-red-green-release" does not match folder "skill"
Files (4)
- SKILL.md
- archive-format.md · references/
- conversation-examples.md · references/
- phase-details.md · references/
SKILL.md (first lines)
# Red-Green Release Workflow
> No tag without LGTM. Every change is a self-archiving patch. Every state is rollback-able.
## Typical Scenarios
This skill shines when the agent **does not have direct filesystem or git access** to the user's project. Typical setups:
- **Web chat + Repomix**: User pastes a Repomix dump of their codebase into a web chat. The agent proposes changes as `pr-*.sh` heredoc patches. The user copies the patch locally and runs `bash pr-*.sh`.
- **Distributed / async review**: Patches are posted in issues, emailed, or shared via web UI for a human to review and apply manually.
- **No git on target**: Environments (e.g., bare-metal servers, deployed configs) where `git revert` is unavailable — `.bak` files provide rollback.
In these scenarios the agent cannot `git commit`, `git diff`, or write files directly. The heredoc patch is the **only viable delivery format**.
## Core Principles
1. **User acceptance drives releases** — "LGTM" / "对了" ("that's right") / "就是这样" ("exactly") → then and only then commit + tag.
2. **Atomic patches** — Each iteration = one `pr-<timestamp>-<desc>.sh` with heredoc content replacement.
3. **Self-archiving** — Patch copies itself to `archived-patches/` and deletes itself after execution.
4. **Rollback-ready** — Every patch backs up originals before modifying. Rollback = restore backup.
## Workflow (4 Phases)
**Phase 1 — Plan**: Understand requirement, describe approach, user confirms design.
**Phase 2 — Create Patch (dry-run)**: Write `pr-<timestamp>-<desc>.sh` containing
backup + heredoc replacement + self-archive logic. Show to user for review.
User says "apply it" → proceed.
**Phase 3 — Apply & Test**: Execute patch (`bash pr-*.sh`). Restart service.
User tests. If issues → back to Phase 2 with a new patch. Iterate until green.
**Phase 4 — Accept & Tag**: User says LGTM →
```bash
git add -A
git commit -m "<summary>"
git tag -a <tag> -m "<summary>"
```
## Patch File Format
### Naming
```
pr-<timestamp>-<description>.sh
```
**Forbidden words in description**: `final`, `done`, `fix`, `ok`. These words
encourage skipping the red-green test cycle by implying pre-verified success.
### Template
```bash
#!/bin/bash
# PR: <timestamp>-<description>
# 1. Create archive directory
mkdir -p archived-patches
# 2. Backup current files (for rollback)
cp src/target.ts "archived-patches/target.ts.$(date +%Y%m%d).bak"
# 3. Apply changes (declarative full-file replacement via heredoc)
cat > src/target.ts << 'PATCH_EOF'
// Full replacement content here — exact file state after patch
PATCH_EOF
# 4. Self-archive: copy patch to archive, then delete from root
cp "$0" "archived-patches/$(basename "$0")"
rm "$0"
```
> ⚠️ Heredoc delimiter (`PATCH_EOF`) must be quoted in the `cat` command to prevent variable expansion. See [references/archive-format.md](./references/archive-format.md) for multi-file patches and escaping rules.
## Supporting References
Read these **only when the specific topic arises**:
| When you need to… | Read |
|--------------------|------|
| See complete heredoc syntax, multi-file patches, and escaping rules | [references/archive-format.md](./references/archive-format.md) |
| Understand the 4-phase workflow in detail | [references/phase-details.md](./references/phase-details.md) |
| See conversation examples of red-green iterations | [references/conversation-examples.md](./references/conversation-examples.md) |From lythos-labs/lythoskill, MIT.
More from lythos-labs/lythoskill
- 0.605score
lythoskill-project-onboarding
lythos-labs
Session context loader.
SkillAFreshness: A★ 3Claude Code +9 - 0.605score
lythoskill-project-scribe
lythos-labs
Session context dump.
SkillAFreshness: A★ 3Claude Code +9 - 0.605score
lythoskill-reminders
lythos-labs
Reconciles a declarative session-reminder registry (cortex/REMINDERS.toml) against the host's session-scoped cron tools.
SkillAFreshness: A★ 3Claude Code +9 - 0.605score
lythoskill-dreaming
lythos-labs
Project memory consolidation — 夜有所梦 ("night dreams": the day's scattered notes get consolidated into long-term memory while "sleeping").
SkillAFreshness: A★ 3Claude Code +9 - 0.602score
lythoskill-writer
lythos-labs
Human-first documentation writer and reviewer.
SkillAFreshness: A★ 3Claude Code +9 - 0.602score
lythoskill-coach
lythos-labs
Analyzes SKILL.md files against Agent Skills best practices.
SkillAFreshness: A★ 3Claude Code +9 - 0.602score
lythoskill-project-scribe-weekly
lythos-labs
Weekly synthesis writer.
SkillAFreshness: A★ 3Claude Code +9 - 0.601score
lythoskill-project-cortex
lythos-labs
Register tasks BEFORE fixing bugs.
SkillAFreshness: A★ 3Claude Code +9 - 0.601score
lythoskill-arena
lythos-labs
Test play for skills and deck configurations.
SkillAFreshness: A★ 3Claude Code +9 - 0.601score
lythoskill-curator
lythos-labs
Skill curator (买家秀 — "buyer show": hands-on QA notes, as opposed to the author's own 卖家秀 "seller show" claims).
SkillAFreshness: A★ 3Claude Code +9 - 0.601score
lythoskill-sober
lythos-labs
Stay clear-headed.
SkillAFreshness: A★ 3Claude Code +9 - 0.598score
lythoskill-creator
lythos-labs
Scaffold and build projects for the lythoskill ecosystem only.
SkillAFreshness: A★ 3Claude Code +9
Signals
- Stars
- 3
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 9, 2026 (1 month ago)
- Last release
- Oct 14, 2026 (17 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/lythos-labs/lythoskill
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from lythos-labs
- 0.605score
lythoskill-project-scribe
lythos-labs
Session context dump.
SkillAFreshness: A★ 3Claude Code +9 - 0.605score
lythoskill-reminders
lythos-labs
Reconciles a declarative session-reminder registry (cortex/REMINDERS.toml) against the host's session-scoped cron tools.
SkillAFreshness: A★ 3Claude Code +9 - 0.605score
lythoskill-project-onboarding
lythos-labs
Session context loader.
SkillAFreshness: A★ 3Claude Code +9 - 0.605score
lythoskill-dreaming
lythos-labs
Project memory consolidation — 夜有所梦 ("night dreams": the day's scattered notes get consolidated into long-term memory while "sleeping").
SkillAFreshness: A★ 3Claude Code +9 - 0.602score
lythoskill-coach
lythos-labs
Analyzes SKILL.md files against Agent Skills best practices.
SkillAFreshness: A★ 3Claude Code +9 - 0.602score
lythoskill-project-scribe-weekly
lythos-labs
Weekly synthesis writer.
SkillAFreshness: A★ 3Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get lythoskill-red-green-release running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
lythoskill-red-green-release. Agent Mart. https://agentmart.dev/skills/lythos-labs-lythoskill-red-green-release (last updated 2026-10-24)