flurdy/agent-skills / skills/next
next
VerifiedRank ready beads across validated workspace stores or one local store. List read-only, or claim one selected bead, show its details, and continue into its work.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 50.1 KB |
| pi/index.ts | script | 2.5 KB |
| pi/lease-selection.ts | script | 16.9 KB |
| references/dolt-recovery.md | markdown | 7.7 KB |
| references/source-scope.md | markdown | 12.5 KB |
| scripts/bd-showexecutable | script | 1.1 KB |
| scripts/collect.pyexecutable | script | 25.5 KB |
| scripts/next-bdexecutable | script | 16.5 KB |
| scripts/next-selectexecutable | script | 21.3 KB |
| tests/lease-extension.test.mjs | script | 7.4 KB |
| tests/lease-kernel.test.mjs | script | 3.7 KB |
| tests/lease-selection.test.mjs | script | 20.1 KB |
| tests/test_defer_dates.py | script | 6.8 KB |
| tests/test_dolt_recovery_contract.py | script | 3.3 KB |
| tests/test_machine_routing.py | script | 10.1 KB |
| tests/test_next_bd.py | script | 43.8 KB |
| tests/test_next_select.py | script | 36.2 KB |
| tests/test_ownership_contract.py | script | 2.8 KB |
| tests/test_read_deadlines.py | script | 8.2 KB |
| tests/test_related.py | script | 11.4 KB |
| tests/test_source_scope.py | script | 10.1 KB |
| tests/workspace_fixture.py | script | 10.8 KB |
tests/test_ownership_contract.py
View on GitHub"""Instruction-contract fixtures, not a runtime ownership cache or guard test."""
from pathlib import Path
import unittest
SKILLS = Path(__file__).resolve().parents[2]
class OwnershipContractTest(unittest.TestCase):
def test_read_reuse_and_mutation_scenarios_are_explicit(self):
baseline = (SKILLS / "beads" / "SKILL.md").read_text()
scenarios = {
"Same exact qualified target, unchanged context, more reads in one operation":
"Reuse actual successful resolution; qualify reads with its directory",
"Bare selector ambiguous across stores":
"Stop; ask for an exact owner; no reusable proof",
"Changed target selector": "Resolve again before reading or writing",
"Changed repository/store identity or topology/declaration/redirect":
"Invalidate; resolve again",
"Changed originating cwd or session, or ended operation": "Invalidate; resolve again",
"Later failed resolution, including unavailable":
"Discard earlier success; no fallback writes",
"Direct bd mutation after reads":
"Fresh full resolution immediately before that mutation",
"Helper start with its own resolver":
"One internal full resolution; no duplicate caller check",
"Stale or invented proof, later independent write or unrelated target":
"No authority; obtain fresh full resolution",
}
for scenario, disposition in scenarios.items():
with self.subTest(scenario=scenario):
self.assertIn(f"| {scenario} | {disposition} |", baseline)
self.assertIn("instruction-level boundary, not a runtime cache or receipt API", baseline)
self.assertIn("Stricter repository rules, source/plan guards and sync approvals still apply", baseline)
self.assertNotIn("Resolve ownership before every read", baseline)
def test_consumers_share_the_baseline_without_duplicate_write_checks(self):
for skill in ("next", "triage"):
text = (SKILLS / skill / "SKILL.md").read_text()
with self.subTest(skill=skill):
self.assertIn("../beads/SKILL.md#ownership-proof-lifetime", text)
self.assertIn("failed resolution", text)
self.assertIn("caller", text)
self.assertIn("independent write", text)
triage = (SKILLS / "triage" / "SKILL.md").read_text()
apply = triage.split("**R5.", 1)[1].split("### Rules", 1)[0]
self.assertIn("before each direct", apply)
self.assertIn("next-select resolve <selector>", apply)
self.assertLess(apply.index("next-select resolve"), apply.index("bd -C <directory> update"))
if __name__ == "__main__":
unittest.main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |