dse120071750/m8m-harness-builder / examples/text_pipeline
text-pipeline
VerifiedReference M8M 2.0 flowstep_flow_v4 skill with chosen JSON milestone outputs.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 399 B |
| flows/text_pipeline_v1.yaml | config | 2.3 KB |
| planning/flowstep-instruction.md | markdown | 5.1 KB |
| planning/m8m-flowchart.jpg | binary | 146.4 KB |
| planning/m8m-flowchart.md | markdown | 3.4 KB |
| references/ingest.md | markdown | 573 B |
| references/label.md | markdown | 720 B |
| references/segment.md | markdown | 581 B |
| steps/ingest/input.schema.json | config | 398 B |
| steps/ingest/output.schema.json | config | 652 B |
| steps/ingest/tests/test_tool.py | script | 824 B |
| steps/ingest/tool.py | script | 495 B |
| steps/label/draft.schema.json | config | 261 B |
| steps/label/input.schema.json | config | 300 B |
| steps/label/output.schema.json | config | 660 B |
| steps/label/tests/test_tool.py | script | 1.0 KB |
| steps/label/tool.py | script | 902 B |
| steps/segment/input.schema.json | config | 299 B |
| steps/segment/output.schema.json | config | 770 B |
| steps/segment/tests/test_tool.py | script | 769 B |
| steps/segment/tool.py | script | 565 B |
steps/ingest/tool.py
View on GitHub"""Normalize request text. This step is the ingest tool, not a worker prompt."""
from __future__ import annotations
import re
from typing import Any
def run(input_data: dict[str, Any], draft: dict[str, Any] | None = None, **_: Any) -> dict[str, Any]:
del draft
text = re.sub(r"\s+", " ", str(input_data["request"]["text"])).strip()
if not text:
raise ValueError("text is empty after normalize")
return {"outputs": {"result": {"text": text, "char_count": len(text)}}}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |