Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .claude/agents/smart-commit.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ One-shot autonomous commit. No per-step gates, no "does this look right?", no pe
## Rules

- **Never put an email address in the commit message**: no `noreply@` line, no email in any
trailer. `commit.sh` and `precommit.sh` enforce this and will reject the commit. `commit.sh`
appends a name-only `Co-Authored-By: Claude` trailer automatically.
trailer. `commit.sh` and `precommit.sh` enforce this and will reject the commit.
- **Never name Claude Code or Anthropic**: no attribution trailer, no footer. `commit.sh`
rejects the phrase.
- **Do not push**: leave push to `/yeet` or explicit user instruction
- **One commit only**: if changes span clearly unrelated concerns, note it in the output
but still commit everything together (user can split manually if they want)
Expand Down
1 change: 1 addition & 0 deletions .claude/rules/deterministic-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ print terse JSON by default. Use the script help for supported flags.
| `dotnet list ... --outdated\|--vulnerable` | `scripts/dep-check.sh [--outdated] [--json]` |
| parsing raw MSBuild `File.cs(l,c): error CODE` lines | `scripts/diagnostics.sh [--group\|--code ID\|--diff a b]` |
| ad-hoc `PackageReference` classify or cross-project heat map | `scripts/nuget-heat-map.sh [--json]` |
| ad-hoc `~/.nuget/packages` probes for package paths | `scripts/pkg-path.sh PACKAGE [--version V] [--ref\|--lib]` |
| ad-hoc SDK, `TargetFramework`, or Docker `FROM` pin scans | `scripts/runtime-matrix.sh [--json]` |
| ad-hoc `#pragma warning disable` or `[SuppressMessage]` greps | `scripts/suppression-scan.sh [--json]` |
| ad-hoc `PackageVersion` orphan or `ProjectReference` set-diff | `scripts/deps-graph.sh [--orphans] [--json]` |
Expand Down
5 changes: 4 additions & 1 deletion .claude/skills/yeet/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ Skip with "Agent mirror skipped: no agent definition changes" when neither path
- Subject line must be <=72 chars. Use a body for detail when > 1 major concern
- Never truncate the subject: if the auto-generated one ends in `...`, it is wrong
- **No email addresses**: never put an email in the message or any trailer, `commit.sh` rejects it
- **Never name Claude Code or Anthropic**: no attribution trailer, no footer. `commit.sh` rejects the phrase
- **Commit**: `scripts/internal/commit.sh --skip-precommit "message"` (precommit already ran above)

**Both paths converge here:**
Expand All @@ -197,7 +198,8 @@ Skip with "Agent mirror skipped: no agent definition changes" when neither path
gh pr create --title "<commit subject line>" --body "<body>"
```
- Title: reuse the commit subject line (the `type(scope): summary` part)
- Body: use these sections, and omit one that does not apply: `## Executive Summary` (problem, cause, fix, and measured results with test conditions), `## Code Changes`, `## Tests and Tooling` (name what did not run), `## Review Guide`, `## Rollback`, and `## Links` for work items. Do not invent causes, measurements, or test results. End with the Claude Code footer. Never include an email address anywhere in the body
- Body: use these sections, and omit one that does not apply: `## Executive Summary` (problem, cause, fix, and measured results with test conditions), `## Code Changes`, `## Tests and Tooling` (name what did not run), `## Review Guide`, `## Rollback`, and `## Links` for work items. Do not invent causes, measurements, or test results. Never name Claude Code or Anthropic. End with no footer. Never include an email address anywhere in the body
- Before `gh pr create`, scan the title and body for `Claude Code` and `Anthropic`. Remove every hit
- If a PR already exists for this branch, skip PR creation silently
- Report the PR URL at the end

Expand All @@ -207,6 +209,7 @@ Skip with "Agent mirror skipped: no agent definition changes" when neither path
- **Fully autonomous**: no user prompts during execution. Invoking `/yeet` is the user's approval for the push and the PR (`.claude/rules/auto-approvals.md`).
- **Stop on failure**: PII fail, build fail, or test fail halts the pipeline
- **No email addresses**: never in a commit message, trailer, or PR body. The PII scan blocks real emails in the staged diff and `commit.sh` rejects an email in the message, `[email protected]` placeholders are allowed
- **No Claude Code attribution**: never name Claude Code or Anthropic in a commit message, trailer, or PR body. `commit.sh` rejects the phrase and the PR step scans the body
- **Single commit per push, always**: squash every unpushed local commit, with any new changes, into one commit before `git push`. Count with `unpushed`, never `ahead`. Skip the squash only when `unpushed == 1` and there are no new changes.
- **Unpushed local commits always ship**: a clean working tree is not a reason to stop if `unpushed > 0`. Check `scripts/branch.sh --json` unconditionally. Never rely on working-tree state alone to decide whether a push is needed.
- **Do NOT auto-commit or push again** after completing these steps, one-time action
Expand Down
5 changes: 3 additions & 2 deletions .opencode/agents/smart-commit.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ One-shot autonomous commit. No per-step gates, no "does this look right?", no pe
## Rules

- **Never put an email address in the commit message**: no `noreply@` line, no email in any
trailer. `commit.sh` and `precommit.sh` enforce this and will reject the commit. `commit.sh`
appends a name-only `Co-Authored-By: Claude` trailer automatically.
trailer. `commit.sh` and `precommit.sh` enforce this and will reject the commit.
- **Never name Claude Code or Anthropic**: no attribution trailer, no footer. `commit.sh`
rejects the phrase.
- **Do not push**: leave push to `/yeet` or explicit user instruction
- **One commit only**: if changes span clearly unrelated concerns, note it in the output
but still commit everything together (user can split manually if they want)
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ After an agent definition changes, run `scripts/internal/opencode-agents.sh sync
- Commit or ship only when requested. Use the `smart-commit` agent for commits and `/yeet` for shipping.
- On a harness without agents or skills, use the scripts named in the routing table with the same approval policy.
- Write concise imperative commit summaries.
- Never add a `Co-Authored-By` trailer yourself. `scripts/internal/commit.sh` appends the name-only trailer.
- Do not name Claude Code or Anthropic in a commit message or PR body. Add no attribution trailer. `scripts/internal/commit.sh` rejects the phrase.
- Squash only unpushed commits. Preserve pushed history and ship one clean commit per PR.
- Run `scripts/status.sh` before staging. Treat concurrent staged, added, or removed files as existing work.
- Preserve unrelated work. Take no destructive, production, or external action beyond the authorization given.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ scripts/podman.sh test
├── nuget.config # Single source, source mapping, and 72-hour publish age
├── opencode.json # opencode v2 config: model, instructions, MCP, permissions, policies
├── plans/ # Structured planning documents
├── prompts/ # System prompt for Lode sessions
├── prompts/ # Lode system prompt and sample prompts
├── renovate.json # Renovate dependency update config
├── scripts/ # Bash development scripts ([catalog](scripts/README.md))
├── src/
Expand Down
2 changes: 1 addition & 1 deletion docs/engineering/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ scripts/build.sh --project Web # build one project
scripts/test.sh # CI-trait tests, the fast path
scripts/test.sh GreeterTests # one test class
scripts/test.sh --all # the full suite
scripts/check.sh # shell lint, format, build, and test
scripts/check.sh # composed gate, steps in scripts/README.md
scripts/ci.sh # the full CI pipeline locally
scripts/help.sh # every script and its purpose
```
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/cli-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ flowchart LR
| Test, full suite | `scripts/test.sh --all` | includes the Podman and Manual categories |
| Format, apply | `scripts/format.sh --changed` | jb cleanup then `dotnet format` |
| Format, check | `scripts/format.sh --check` | verify only |
| Composed gate | `scripts/check.sh` | shell lint, format, build, test |
| Composed gate | `scripts/check.sh` | steps in `scripts/README.md` |
| Full CI | `scripts/ci.sh` | mirrors the `ci` job |
| Session context | `scripts/context.sh` | status, diff, and plans |
| Git status | `scripts/status.sh --json` | structured |
Expand Down
13 changes: 7 additions & 6 deletions lode/dotnet/release-tracking.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Roslyn Analyzer Release Tracking
*Updated: 2026-11-14T00:47:21Z*
*Updated: 2026-11-17T13:14:44Z*

## Overview

Expand Down Expand Up @@ -92,11 +92,12 @@ nuget.org already carries, because the publish job skips an existing version.

**Pre-first-release:** keep all rules in `Unshipped.md`; `Shipped.md` starts with `; No shipped releases yet.`

The `/yeet` skill enforces the whole workflow on every run. It calls
`scripts/internal/analyzer-release-check.sh` for the release files,
`scripts/readme-table-diff.sh --analyzer` for the analyzer README, and
`scripts/internal/analyzer-promote.sh` after the version bump. A rule that is
missing from either file blocks the ship, even on a docs-only change set.
The `/yeet` skill enforces the whole workflow on every run. `scripts/check.sh`
runs `scripts/internal/analyzer-release-check.sh` when the diff touches
`src/E128.Analyzers/`. The skill also calls that script directly for the release
files. It calls `scripts/readme-table-diff.sh --analyzer` for the analyzer
README and `scripts/internal/analyzer-promote.sh` after the version bump. A rule
that is missing from either file blocks the ship, even on a docs-only change set.

## Consumers

Expand Down
6 changes: 3 additions & 3 deletions lode/infrastructure/shipping.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Shipping
*Updated: 2026-11-12T00:54:46Z*
*Updated: 2026-11-17T13:17:39Z*

`scripts/verify-and-ship.sh` ships the current feature branch as one squashed commit. It formats, bumps the version, runs the canonical check, squashes, scans, commits, and pushes. The script runs only when an operator asks for it, because it commits and pushes.

Expand Down Expand Up @@ -36,10 +36,10 @@ The diagram shows seven steps after validation. Each step runs only when the ste

1. Format the changed files.
2. Bump the version. The bump comes before the check, so the check verifies the final file contents.
3. Run `scripts/check.sh --all`. The check includes the format check. The script never passes `--no-format`.
3. Run `scripts/check.sh --all`. The check includes the format check. The script never passes `--no-format`. It also runs the analyzer release check when the diff touches `src/E128.Analyzers/`.
4. Stage every change, including new files.
5. Squash the unpushed commits with a soft reset.
6. Run `scripts/internal/commit.sh`. It runs the precommit scan over the whole squashed index, then commits. The scan therefore sees the contents of every earlier unpushed commit.
6. Run `scripts/internal/commit.sh`. It runs the precommit scan over the whole squashed index, then commits. The scan therefore sees the contents of every earlier unpushed commit. The script rejects an email address or a Claude Code mention in the message. It adds no attribution trailer.
7. Push the branch.

## Version Inference
Expand Down
7 changes: 7 additions & 0 deletions prompts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Prompts

Reusable sample prompts for this repository.

Keep a prompt here only when no skill, agent, or rule file owns its behavior.
A prompt that duplicates an owner drifts from that owner. Delete it instead.
`SystemPrompt.txt` is the Lode method bootstrap, not a sample prompt.
7 changes: 7 additions & 0 deletions prompts/blazing-fast-net.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# .NET Safety and Anti-Pattern Audit

Inspect the current codebase for issues listed in https://raw.githubusercontent.com/dotnet/docs/refs/heads/main/docs/standard/unsafe-code/best-practices.md

Do not attempt to make minimal reproductions or fixes. Focus on identifying potential safety and code quality issues.

Report two groups: 1) correctness issues, 2) anti-patterns.
3 changes: 3 additions & 0 deletions prompts/clean-up-rules.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
let's review claude.md and other rules for contradictions to resolve. suggest up to 5. use the askusertool to ask me how to resolve each one.

let's review claude.md and other rules to trim some. suggest 5 things to remove
1 change: 0 additions & 1 deletion prompts/code-review.md

This file was deleted.

9 changes: 4 additions & 5 deletions prompts/find-inefficiencies.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
Scrape all of my Claude session on this computer. Analyze my usage patterns and give me a breakdown of:
# Session Usage Analysis

Scrape all of my Claude sessions on this computer. Analyze my usage patterns and give me a breakdown of:

- What I do most frequently
- What should become skills (reusable workflows/knowledge)
- What should become plugins (standalone tools)
- What should become agents (autonomous subagents)
- What belongs in CLAUDE. md (project-level instructions)


Audit the last 48 hours of claude use. Find operations that used a lot of tokens. Of those operations, suggest new scripts to be created to reduce that token use and improve wall-clock time.
- What belongs in CLAUDE.md (project-level instructions)
2 changes: 0 additions & 2 deletions prompts/lode-prompt-update.md

This file was deleted.

8 changes: 0 additions & 8 deletions prompts/lode-update.md

This file was deleted.

21 changes: 0 additions & 21 deletions prompts/skill-agent-script.md

This file was deleted.

1 change: 0 additions & 1 deletion prompts/token-waster.md

This file was deleted.

4 changes: 3 additions & 1 deletion prompts/untangle-codebase.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
create a branch for https://raw.githubusercontent.com/caldoai/skills/refs/heads/main/skills/untangle-codebase/SKILL.md invoke and run it. let me review
# Untangle Codebase

Create a branch for https://raw.githubusercontent.com/caldoai/skills/refs/heads/main/skills/untangle-codebase/SKILL.md. Invoke and run it. Let me review.
7 changes: 4 additions & 3 deletions scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Other required tools: see [Shell Authoring](../lode/infrastructure/shell-authori
| `build.sh` | Build the solution or a specific project | `--verbose`, `--project`, `--errors`, `--warnings`, `--fix`, `--fast` |
| `test.sh` | Run tests (defaults to CI category) | `--all`, `--verbose`, `--dry-run`, `--trait`, `--framework` |
| `format.sh` | Run jb cleanupcode then dotnet format | `--check`, `--changed`, `--no-jb` |
| `check.sh` | Composed: shell lint, shipping tests (--all, if changed), format, build, test | `--all`, `--no-format`, `--json` |
| `check.sh` | Composed: shell lint, shipping tests, analyzer release, format, build, test | `--all`, `--no-format`, `--json` |
| `ci.sh` | Full CI pipeline: shell lint, shipping tests, format, build, test | `--human`, `--json`, `--skip-format`, `--skip-build`, `--skip-test` |
| `podman.sh` | Podman build/run/test/stop/clean | `--no-cache` |
| `verify-and-ship.sh` | Ship the branch as one squashed commit (format, bump, check, squash, scan, commit, push) | `--message`/`-m` (required), `--no-version-bump`, `--json` |
Expand Down Expand Up @@ -82,8 +82,9 @@ Other required tools: see [Shell Authoring](../lode/infrastructure/shell-authori
| -------------------- | -------------------------------------------------------------- | ---------------------------------------------------------------- |
| `find.sh` | Deterministic symbol lookup (class/method/callers/refs/file) | `--class`, `--method`, `--callers`, `--refs`, `--file`, `--json` |
| `file-outline.sh` | File structure outline with line ranges for targeted reading | `--json`, `--method`, `--section` |
| `code-read.sh` | Extract method/class/section source by name | `--method`, `--class`, `--section`, `--line`, `--json` |
| `code-read.sh` | Extract method/class/section or line ranges by name | `--method`, `--class`, `--section`, `--line`/`--range`, `--json` |
| `deps.sh` | Type dependency graph (callers, callees, interfaces) | `--callers`, `--callees`, `--interfaces`, `--json` |
| `pkg-path.sh` | Resolve a NuGet package's ref and lib dirs | `--version`, `--ref`, `--lib`, `--json` |

## Coverage & Analysis

Expand Down Expand Up @@ -114,7 +115,7 @@ These are invoked by skills and agents only — not intended for direct use:
| ------------------------------------ | ------------------------------------------------------------------------------------------ |
| `internal/analyzer-release-check.sh` | Validate analyzer release files (Unshipped/Shipped) against source DiagnosticId constants |
| `internal/analyzer-promote.sh` | Move Unshipped rule rows into a new Shipped release section |
| `internal/commit.sh` | Commit helper: blocks emails, adds a name-only co-author trailer unless one is present |
| `internal/commit.sh` | Commit helper: blocks email addresses and Claude Code attribution in the message |
| `internal/cr-diff-deliver.sh` | Decide code-review diff delivery mode by size: inline (≤30KB), write (30-40KB), or split (>40KB) |
| `internal/cr-target.sh` | Resolve a code-review target to base, changed files, and the reviewers to run |
| `internal/mechanical-diff.sh` | Classify each changed file in the working diff as MECHANICAL (namespace rename) or SUBSTANTIVE |
Expand Down
Loading