dse120071750/m8m-harness-builder / skills/m8m/m8m-harness-builder
m8m-harness-builder
FlaggedBuild and edit M8M harnesses that coordinate existing tools and FlowSteps, validate milestone outputs, and track progress and resume. Reuse working implementations in place. Compile workflow changes without runtime packaging; build portable packages when requested and deliver server installations through the dedicated M8M server installer.
scripts/m8m_cache.py
View on GitHub"""Explicit maintenance for the optional M8M cross-run candidate cache."""
from __future__ import annotations
import argparse
import json
from pathlib import Path
from candidate_cache import prune_expired
from session_layout import default_harness_root, validate_fresh_harness_root
def build_parser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(description=__doc__)
sub = parser.add_subparsers(dest="command", required=True)
prune = sub.add_parser("prune", help="Remove expired or invalid cache entries")
prune.add_argument(
"--harness-root",
type=Path,
help="Mutable execution root (default: M8M_HARNESS_ROOT or %SystemDrive%\\NisanRuntime)",
)
prune.add_argument(
"--codebase",
type=Path,
help="Explicit legacy cache root selector; never used for default discovery",
)
prune.add_argument("--flow-id", help="Limit pruning to one workflow")
return parser
def main(argv: list[str] | None = None) -> int:
args = build_parser().parse_args(argv)
if args.codebase is not None and args.harness_root is not None:
raise SystemExit("choose --harness-root or explicit legacy --codebase, not both")
if args.codebase is not None:
root = args.codebase.resolve() / "flowsteps" / "cache" / "v1"
else:
harness_root = validate_fresh_harness_root(args.harness_root or default_harness_root())
root = harness_root / "cache" / "v1"
if args.flow_id:
root = root / str(args.flow_id)
result = prune_expired(root)
print(json.dumps({"schema": "m8m_cache_prune_v1", "root": str(root), **result}, indent=2))
return 0
if __name__ == "__main__":
raise SystemExit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| planning-and-task-breakdownaddyosmani/agent-skillsBreaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| screenpipethedotmack/claude-memSearch screen and audio history recorded by Screenpipe and optionally save selected context into claude-mem. Use when the user asks to recall desktop activity, a meeting, or something seen in another app through Screenpipe. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| contact-widgetnexu-io/open-designSelf-contained floating chat widget with welcome screen, social links, meeting button, and message input. Single HTML file, zero dependencies. | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |
| meeting-notesnexu-io/open-designMeeting notes page — title bar with attendees, agenda checklist, decisions block, action items table with owners + dates, and a "next meeting" footer. Use when the brief mentions "meeting notes", "minutes", "1:1 notes", "all-hands recap", or "会议纪要". | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |