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.
flowsteps/tools/audit_skill/tests/test_tool.py
View on GitHubfrom __future__ import annotations
import importlib.util
import tempfile
import unittest
from pathlib import Path
TOOL = Path(__file__).resolve().parents[1] / "tool.py"
_spec = importlib.util.spec_from_file_location("audit_skill_tool", TOOL)
assert _spec is not None and _spec.loader is not None
tool = importlib.util.module_from_spec(_spec)
_spec.loader.exec_module(tool)
class FakeSteps:
def __init__(self, result: dict) -> None:
self.result = result
self.calls: list[tuple[dict, dict, Path]] = []
def run(self, input_data: dict, *, task: dict, run_dir: Path) -> dict:
self.calls.append((input_data, task, run_dir))
return self.result
class AuditSkillToolTests(unittest.TestCase):
def test_delegates_to_the_exact_audit_milestone(self) -> None:
expected = {"outputs": {"source_audit": {"status": "PASS"}}}
fake = FakeSteps(expected)
original = tool._STEPS
tool._STEPS = fake
self.addCleanup(setattr, tool, "_STEPS", original)
with tempfile.TemporaryDirectory() as temp:
run_dir = Path(temp)
request = {"request": {"target": "skill", "codebase": "repo"}}
result = tool.run(request, run_dir=run_dir, task={"attempt": 1})
self.assertEqual(result, expected)
self.assertEqual(fake.calls[0][0], request)
self.assertEqual(fake.calls[0][1]["step_id"], "audit_complete")
self.assertEqual(fake.calls[0][2], run_dir.resolve())
def test_rejects_missing_context_and_wrong_milestone(self) -> None:
with self.assertRaisesRegex(ValueError, "requires run_dir"):
tool.run({"request": {"target": "skill"}})
with self.assertRaisesRegex(ValueError, "cannot run milestone"):
tool.run(
{"request": {"target": "skill"}},
run_dir="run",
task={"step_id": "toolbox_ready"},
)
if __name__ == "__main__":
unittest.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 |