Skip to content

Commit 2f4aaae

Browse files
committed
Merge branch 'latest-changes' into main after upstream sync and conflict resolution
2 parents 5b975a8 + fa9a7d7 commit 2f4aaae

69 files changed

Lines changed: 11322 additions & 942 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.agent/rules/safety.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Safety Rules for AI Coding Agents
2+
3+
> These rules apply to all coding agents working on this project. They replicate the protection provided by DCG (Destructive Command Guard) for Claude Code.
4+
5+
## Absolutely Forbidden Commands
6+
7+
The following commands are **never** to be executed without explicit user approval in the same session:
8+
9+
### Git Commands
10+
```bash
11+
git reset --hard # Destroys uncommitted changes
12+
git checkout -- <files> # Discards file changes permanently
13+
git restore <files> # Same as checkout -- (not --staged)
14+
git push --force / -f # Overwrites remote history
15+
git clean -f # Deletes untracked files
16+
git branch -D # Force-deletes without merge check
17+
git stash drop / clear # Permanently deletes stashes
18+
```
19+
20+
### Filesystem Commands
21+
```bash
22+
rm -rf <non-temp> # Recursive deletion
23+
rmdir # Directory deletion
24+
```
25+
26+
## Always Safe Commands
27+
```bash
28+
git checkout -b <branch> # Creates branch, doesn't touch files
29+
git restore --staged # Only unstages, safe
30+
git clean -n # Dry-run, preview only
31+
rm -rf /tmp/... # Temp directories are ephemeral
32+
git push --force-with-lease # Safe force push variant
33+
```
34+
35+
## When You Need a Destructive Command
36+
37+
1. **STOP** and explain to the user why it's needed
38+
2. **Suggest safer alternatives** if available
39+
3. **Ask the user to run it manually** if truly required
40+
4. **Never bypass** these protections—they exist for your safety too
41+
42+
## Multi-Agent Awareness
43+
44+
When working alongside other agents:
45+
- Never disturb changes you didn't make
46+
- Treat unfamiliar changes as if you made them yourself
47+
- Use MCP Agent Mail for file reservations when available

.agent/rules/ubs.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
## UBS Quick Reference for AI Agents
2+
3+
UBS stands for "Ultimate Bug Scanner": **The AI Coding Agent's Secret Weapon: Flagging Likely Bugs for Fixing Early On**
4+
5+
**Install:** `curl -sSL https://raw.githubusercontent.com/Dicklesworthstone/ultimate_bug_scanner/master/install.sh | bash`
6+
7+
**Golden Rule:** `ubs <changed-files>` before every commit. Exit 0 = safe. Exit >0 = fix & re-run.
8+
9+
**Commands:**
10+
```bash
11+
ubs file.ts file2.py # Specific files (< 1s) — USE THIS
12+
ubs $(git diff --name-only --cached) # Staged files — before commit
13+
ubs --only=js,python src/ # Language filter (3-5x faster)
14+
ubs --ci --fail-on-warning . # CI mode — before PR
15+
ubs --help # Full command reference
16+
ubs sessions --entries 1 # Tail the latest install session log
17+
ubs . # Whole project (ignores things like .venv and node_modules automatically)
18+
```
19+
20+
**Output Format:**
21+
```
22+
⚠️ Category (N errors)
23+
file.ts:42:5 – Issue description
24+
💡 Suggested fix
25+
Exit code: 1
26+
```
27+
Parse: `file:line:col` → location | 💡 → how to fix | Exit 0/1 → pass/fail
28+
29+
**Fix Workflow:**
30+
1. Read finding → category + fix suggestion
31+
2. Navigate `file:line:col` → view context
32+
3. Verify real issue (not false positive)
33+
4. Fix root cause (not symptom)
34+
5. Re-run `ubs <file>` → exit 0
35+
6. Commit
36+
37+
**Speed Critical:** Scope to changed files. `ubs src/file.ts` (< 1s) vs `ubs .` (30s). Never full scan for small edits.
38+
39+
**Bug Severity:**
40+
- **Critical** (always fix): Null safety, XSS/injection, async/await, memory leaks
41+
- **Important** (production): Type narrowing, division-by-zero, resource leaks
42+
- **Contextual** (judgment): TODO/FIXME, console logs
43+
44+
**Anti-Patterns:**
45+
- ❌ Ignore findings → ✅ Investigate each
46+
- ❌ Full scan per edit → ✅ Scope to file
47+
- ❌ Fix symptom (`if (x) { x.y }`) → ✅ Root cause (`x?.y`)

.agent/skills/acfs-tools/SKILL.md

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
---
2+
name: acfs-tools
3+
description: ACFS CLI commands reference. Use when working with ACFS utilities like doctor, newproj, info, update, or dashboard.
4+
---
5+
6+
# ACFS CLI Tools
7+
8+
ACFS provides several CLI commands for managing your agentic coding environment.
9+
10+
## Available Commands
11+
12+
### `acfs doctor`
13+
14+
Health check for installed tools. Run after installation or when troubleshooting.
15+
16+
```bash
17+
acfs doctor # Terminal output
18+
acfs doctor --json # JSON output for scripting
19+
```
20+
21+
### `acfs newproj`
22+
23+
Create a new project with ACFS defaults (git init, AGENTS.md, beads, and multi-agent configs).
24+
25+
```bash
26+
acfs newproj myapp # CLI mode
27+
acfs newproj --interactive # TUI wizard (recommended)
28+
acfs newproj -i myapp # Prefill project name
29+
```
30+
31+
### `acfs info`
32+
33+
Lightning-fast system overview (reads cached state).
34+
35+
```bash
36+
acfs info # Terminal output
37+
acfs info --json # JSON for scripting
38+
acfs info --minimal # Just essentials
39+
```
40+
41+
### `acfs update`
42+
43+
Update all installed tools.
44+
45+
```bash
46+
acfs-update # Update apt, runtimes, shell, agents, cloud
47+
acfs-update --stack # Include Dicklesworthstone stack
48+
acfs-update --dry-run # Preview without changes
49+
```
50+
51+
### `acfs cheatsheet`
52+
53+
Discover aliases and shortcuts installed by ACFS.
54+
55+
```bash
56+
acfs cheatsheet
57+
```
58+
59+
### `acfs dashboard generate`
60+
61+
Generate an HTML status page.
62+
63+
```bash
64+
acfs dashboard generate
65+
```
66+
67+
### `acfs services-setup`
68+
69+
Configure agent credentials (Claude, Codex, Gemini, AMP).
70+
71+
```bash
72+
acfs services-setup
73+
```
74+
75+
### `acfs agent-resources`
76+
77+
Manage shared agent resources in projects (status/diff/apply updates).
78+
79+
```bash
80+
acfs agent-resources status /path/to/project
81+
acfs agent-resources diff /path/to/project
82+
acfs agent-resources apply /path/to/project
83+
```
84+
85+
### `acfs continue`
86+
87+
View upgrade progress after reboot (during Ubuntu upgrades).
88+
89+
```bash
90+
acfs continue
91+
```
92+
93+
## Key Aliases
94+
95+
| Alias | Command | Notes |
96+
|-------|---------|-------|
97+
| `cc` | Claude Code | dangerously-skip-permissions |
98+
| `cod` | Codex CLI | dangerously-bypass-approvals |
99+
| `gmi` | Gemini CLI | yolo mode |
100+
| `amp` | Amp CLI | |
101+
102+
## Configuration Files
103+
104+
- `~/.acfs/state.json` — Installation state and checkpoints
105+
- `~/.acfs/zsh/acfs.zshrc` — Shell configuration
106+
- `~/.acfs/logs/` — Update and installation logs

.agent/skills/beads/SKILL.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
---
2+
name: beads
3+
description: Issue tracking with Beads (br/bv). Use when working with tasks, bugs, issues, or needing to triage work priorities.
4+
---
5+
6+
# Issue Tracking with br (Beads)
7+
8+
All issue tracking goes through **Beads**. No other TODO systems.
9+
10+
**Note:** `br` is a convenience alias for the real Beads CLI: `bd`.
11+
12+
## Key Invariants
13+
14+
- `.beads/` is authoritative state and **must always be committed** with code changes.
15+
- Do not edit `.beads/*.jsonl` directly; only via `br` / `bd`.
16+
17+
## Basic Commands
18+
19+
```bash
20+
br ready --json # Check ready work
21+
br create "Title" -t bug -p 1 # Create issue (types: bug|feature|task|epic|chore)
22+
br update br-42 --status in_progress
23+
br close br-42 --reason "Done"
24+
br sync --flush-only # Export without git ops
25+
```
26+
27+
**Priorities:** `0` critical | `1` high | `2` medium | `3` low | `4` backlog
28+
29+
## Agent Workflow
30+
31+
1. `br ready` → find unblocked work
32+
2. `br update <id> --status in_progress` → claim
33+
3. Implement + test
34+
4. If new work found → `br create ... --deps discovered-from:<id>`
35+
5. `br close <id>` → complete
36+
6. Commit `.beads/` with code changes
37+
38+
---
39+
40+
# bv — Beads Viewer (AI Sidecar)
41+
42+
Graph-aware triage engine with precomputed metrics (PageRank, betweenness, critical path).
43+
44+
**⚠️ CRITICAL: Use ONLY `--robot-*` flags. Bare `bv` launches TUI that blocks your session.**
45+
46+
## Core Commands
47+
48+
```bash
49+
bv --robot-triage # THE MEGA-COMMAND: start here
50+
bv --robot-next # Single top pick + claim command
51+
bv --robot-plan # Parallel execution tracks
52+
bv --robot-priority # Priority misalignment detection
53+
```
54+
55+
## Triage Output
56+
57+
Returns: `quick_ref`, `recommendations`, `quick_wins`, `blockers_to_clear`, `project_health`, `commands`
58+
59+
## Graph Analysis
60+
61+
| Command | Returns |
62+
|---------|---------|
63+
| `--robot-insights` | PageRank, betweenness, HITS, cycles, critical path |
64+
| `--robot-label-health` | Per-label health levels |
65+
| `--robot-label-flow` | Cross-label dependencies |
66+
| `--robot-alerts` | Stale issues, blocking cascades |
67+
68+
## Filtering
69+
70+
```bash
71+
bv --robot-plan --label backend
72+
bv --recipe actionable --robot-triage
73+
bv --robot-triage --robot-triage-by-label
74+
```
75+
76+
## jq Examples
77+
78+
```bash
79+
bv --robot-triage | jq '.quick_ref'
80+
bv --robot-triage | jq '.recommendations[0]'
81+
bv --robot-insights | jq '.Cycles'
82+
```
83+
84+
**Note:** Phase 1 (degree, topo sort) is instant. Phase 2 (PageRank, betweenness) has 500ms timeout.

.agent/skills/cass/SKILL.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: cass
3+
description: Cross-agent session search. Use when looking for solutions from previous agent sessions or searching conversation history.
4+
---
5+
6+
# cass — Cross-Agent Session Search
7+
8+
`cass` indexes prior agent conversations (Claude Code, Codex, Cursor, Gemini, ChatGPT, etc.) so we can reuse solved problems.
9+
10+
**Rule:** Never run bare `cass` (TUI). Always use `--robot` or `--json`.
11+
12+
## Commands
13+
14+
```bash
15+
cass health # Check index status
16+
cass search "authentication error" --robot --limit 5
17+
cass view /path/to/session.jsonl -n 42 --json
18+
cass expand /path/to/session.jsonl -n 42 -C 3 --json
19+
cass capabilities --json
20+
cass robot-docs guide
21+
```
22+
23+
## Tips
24+
25+
- Use `--fields minimal` for lean output
26+
- Filter by agent with `--agent`
27+
- Use `--days N` to limit to recent history
28+
29+
**stdout** is data-only, **stderr** is diagnostics; exit code 0 = success.
30+
31+
Use cass to avoid re-solving problems other agents already handled.

.agent/skills/cm/SKILL.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
name: cm
3+
description: Cass Memory System for agent learning. Use when retrieving past lessons, extracting rules from sessions, or building procedural memory.
4+
---
5+
6+
# cass-memory (cm) — Agent Memory System
7+
8+
The Cass Memory System gives agents procedural memory by analyzing historical sessions and extracting valuable lessons.
9+
10+
## Quick Start
11+
12+
```bash
13+
cm onboard status # Check status
14+
cm onboard sample --fill-gaps # Get sessions to analyze
15+
cm onboard read /path/to/session.jsonl --template
16+
cm playbook add "Rule content" --category "debugging"
17+
cm onboard mark-done /path/to/session.jsonl
18+
```
19+
20+
## Before Complex Tasks
21+
22+
```bash
23+
cm context "<task description>" --json
24+
```
25+
26+
Returns:
27+
- **relevantBullets**: Rules that may help
28+
- **antiPatterns**: Pitfalls to avoid
29+
- **historySnippets**: Past sessions with similar problems
30+
- **suggestedCassQueries**: Searches for deeper investigation
31+
32+
## Protocol
33+
34+
1. **START**: `cm context "<task>" --json` before non-trivial work
35+
2. **WORK**: Reference rule IDs (e.g., "Following b-8f3a2c...")
36+
3. **FEEDBACK**: `// [cass: helpful b-xyz] - reason` or `// [cass: harmful b-xyz]`
37+
4. **END**: Just finish. Learning happens automatically.
38+
39+
## Key Flags
40+
41+
| Flag | Purpose |
42+
|------|---------|
43+
| `--json` | Machine-readable output (required!) |
44+
| `--limit N` | Cap rules returned |
45+
| `--no-history` | Faster response |

.agent/skills/csctf/SKILL.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: csctf
3+
description: Convert AI chat share links to Markdown/HTML archives. Use when archiving AI conversations or building knowledge bases.
4+
---
5+
6+
# csctf — Chat Shared Conversation to File
7+
8+
Converts **AI chat share links** to Markdown/HTML.
9+
10+
## Usage
11+
12+
```bash
13+
csctf "https://chatgpt.com/share/..." # ChatGPT
14+
csctf "https://gemini.google.com/share/..." # Gemini
15+
csctf "https://claude.ai/share/..." # Claude
16+
csctf "..." --md-only # Markdown only
17+
csctf "..." --json # JSON metadata
18+
csctf "..." --publish-to-gh-pages --yes # GitHub Pages
19+
```
20+
21+
## Output
22+
23+
- `<slug>.md` — Clean Markdown with code blocks
24+
- `<slug>.html` — Static HTML with syntax highlighting
25+
26+
## Use Cases
27+
28+
- Archive important AI conversations
29+
- Build searchable knowledge base
30+
- Share solutions with team
31+
- Document debugging sessions

0 commit comments

Comments
 (0)