mirror of
https://github.com/forkless/NotAlterra.git
synced 2026-08-21 02:25:31 +02:00
Add diligence skill and doc check script
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import re
|
||||
missing = []
|
||||
for fname in ['src/main.rs','src/tui.rs','src/gvas.rs','src/ops.rs','src/discovery.rs','src/guard.rs','src/config.rs']:
|
||||
lines = open(fname).readlines()
|
||||
for i, line in enumerate(lines):
|
||||
if re.match(r'^\s*fn\s+\w+', line):
|
||||
prev = lines[i-1].strip() if i > 0 else ''
|
||||
if not prev.startswith('///') and not prev.startswith('//'):
|
||||
name = line.strip().split('(')[0].replace('fn ','')
|
||||
missing.append((fname, i+1, name))
|
||||
for f,l,n in missing:
|
||||
print(f'{f}:{l}: {n}')
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
name: diligence
|
||||
description: Verification checklist for code changes — always run before claiming a task is complete.
|
||||
---
|
||||
|
||||
# Diligence
|
||||
|
||||
Before reporting any task as complete, verify:
|
||||
|
||||
1. **Doc coverage** — run `python3 _check.py` to confirm zero undocumented functions.
|
||||
2. **Compilation** — `cargo check --workspace` must pass with no errors.
|
||||
3. **Git status** — no uncommitted changes unless intentionally deferred.
|
||||
4. **Remote parity** — `git log --oneline -1` matches `origin/master`.
|
||||
5. **Claim specificity** — report exactly what was done and what was verified, not what was assumed.
|
||||
|
||||
Do not skip the check script. Do not assume prior passes still hold.
|
||||
Reference in New Issue
Block a user