Generated: 2026-05-24
Added a small intelligence/tooling layer on top of the existing workflow collection and the V0 expansion pack. The repository now has: a unified catalog with a deterministic quality score, a search CLI, a schema validator with a lightweight-fallback mode, a duplicate analyzer, a human-reviewable repair-proposal generator, a deterministic prompt-to-IR MVP, and a wiki-seed builder. CI gates run audit + validate + unify + schema-validate on every push.
No workflows were modified. No repair was applied. The expansion pack remains structurally valid (420/420) and the audit reports 0 possible secret findings across 3,613 JSON files.
tools/build_unified_catalog.py— merges main + generated catalogs intocatalog/unified-workflows.index.jsonwith deterministicqualityScore,qualityFlags,reviewStatus, andorigin.tools/search_workflows.py— keyword + filter CLI (--query,--category,--integration,--framework,--risk,--origin,--trigger,--review,--top,--json).tools/validate_schemas.py— validates schemas + catalogs + sampled IR files. Usesjsonschemaif available; lightweight required-field- enum check otherwise. Honestly reports which mode it ran in.
tools/analyze_duplicates.py— combines audit-hash duplicates with title-similarity clusters; per-cluster recommendation is one ofkeep/review/candidate-for-dedupe. No file modification.tools/propose_repairs.py— emits proposals againstschemas/repair-proposal.schema.json. Every proposal carriesrequiresHumanReview: trueandstatus: "proposed". Capped at 500.tools/prompt_to_ir.py— deterministic rule-based draft IR builder. Not an LLM. Outputs*.workflow.ir.json+*.mdper prompt.tools/build_wiki_seed.py— writes machine-generated seed notes underwiki/generated/. Does not touch the curated wiki..github/workflows/audit.yml— CI gate set: audit, generated-pack validation, unified-catalog build, schema validation. Fails onpossibleSecretFindings > 0orinvalidJsonFiles > 0.docs/ci-and-quality-gates.md— documents the gate set.schemas/workflow-ir.schema.json— additive: added"generated"to theframeworkSourceenum (required so the V0 IRs validate).README.md— added "Intelligence Core V1" section, honestly scoped.
Created
tools/build_unified_catalog.pytools/search_workflows.pytools/validate_schemas.pytools/analyze_duplicates.pytools/propose_repairs.pytools/prompt_to_ir.pytools/build_wiki_seed.py.github/workflows/audit.ymldocs/ci-and-quality-gates.mdcatalog/unified-workflows.index.jsonreports/unified-catalog-report.{json,md}reports/schema-validation.{json,md}reports/duplicates-report.{json,md}reports/repair-proposals.{json,md}reports/prompt-to-ir-samples/create-a-workflow-that-receives-website-leads-sc.{workflow.ir.json,md}reports/intelligence-core-v1.{json,md}wiki/generated/{README,category-summary,integration-summary,trigger-patterns,risk-review-queue,prompt-patterns}.md
Modified (additive)
schemas/workflow-ir.schema.json(enum extension)README.md(new Intelligence Core V1 section)
Refreshed by audit (existing behaviour)
catalog/workflows.index.jsonreports/workflow-audit.{json,md}
No existing workflow file was deleted or overwritten.
python tools/audit_workflows.py
python tools/validate_generated_pack.py
python tools/build_unified_catalog.py
python tools/validate_schemas.py
python tools/analyze_duplicates.py
python tools/propose_repairs.py
python tools/build_wiki_seed.py
python tools/search_workflows.py --query "lead qualification" --top 5
python tools/prompt_to_ir.py "Create a workflow that receives website leads, scores them, saves them to CRM, and alerts Slack"
All commands exited 0.
| Gate | Result |
|---|---|
audit: possibleSecretFindings |
0 |
audit: invalidJsonFiles |
0 |
| generated pack | 420/420 valid, no dup IDs/slugs, no structural failures |
| unified catalog build | 3181 entries (420 generated + 2761 existing) |
| schema validation | schemasParse / catalogsParse / catalogEntriesValid / generatedIrValid — all PASS (lightweight mode) |
| duplicates | no duplicate IDs/slugs in generated pack |
| repair proposals | 500 emitted, none auto-applied |
- Total entries: 3,181
- Origins:
generated-pack=420,existing-library=2761 - Risk: low=1637, medium=1311, high=233
- Review status:
review-suggested=381,ok-for-import=2800 - Quality score: min=64, max=92, avg=86.05; 381 entries below 80, 0 below 60
$ python tools/search_workflows.py --query "lead qualification" --top 5
Found 1 match(es). Showing top 1.
#1 score=12 quality=70 review=review-suggested
title : Lead Qualification with BatchData
id : 1910_Code_Webhook_Automation_Webhook-4da7422289
origin : existing-library
framework : n8n
category : automation
trigger : webhook
integrations: code, httpRequest, if, slack, stickyNote, webhook
riskLevel : high
sourcePath : automation/1910_Code_Webhook_Automation_Webhook.json
flags : missing-description, risk-level-high, inline-code-node, webhook-trigger
Prompt: "Create a workflow that receives website leads, scores them, saves them to CRM, and alerts Slack"
- Inferred category:
sales - Inferred trigger :
webhook - Inferred integrations:
slack,crm - Steps: 4 (trigger → score (code) → save (http) → alert (http))
- Output:
reports/prompt-to-ir-samples/create-a-workflow-that-receives-website-leads-sc.workflow.ir.json(+.md) - IR
generationStatus: "planned",validationStatus: "needs-review"— explicitly a draft.
- Total: 500 (cap)
- By severity:
high=233,medium=267 - By detected issue:
high-risk-workflow=233,inline-code-node-review=223,webhook-needs-safety-note=44 - All proposals carry
requiresHumanReview: trueandstatus: "proposed".
wiki/generated/:
category-summary.mdintegration-summary.mdtrigger-patterns.mdrisk-review-queue.mdprompt-patterns.mdREADME.md
All files are tagged "Generated seed notes for human review. Not automatically promoted rules." The curated wiki sections under wiki/patterns/, wiki/integrations/, wiki/repair-rules/, wiki/failure-cases/, wiki/framework-guides/ are unchanged.
.github/workflows/audit.yml — runs audit → validate-generated-pack →
build-unified-catalog → validate-schemas on push, PR, and manual
dispatch. Explicit failure conditions: possibleSecretFindings > 0 or
invalidJsonFiles > 0. Uploads reports as artefacts on every run.
- Behavioural validation. No generated workflow has been imported into n8n or executed.
- Multi-framework export. Only n8n. Dify / LangGraph / Make / Zapier remain documented and planned.
- LLM-backed prompt-to-workflow generator. The current tool is a deterministic rule-based MVP.
- Auto-apply of repair proposals. Intentionally never; proposals are
emitted to
reports/and stop there. - LLM Wiki learning loop.
wiki/generated/is seed material; the curated wiki entries are not generated. - Full JSON Schema validation in CI. CI runs in lightweight mode
because
jsonschemais not installed; documented as a limitation.
- The repair-proposal queue is capped at 500 to stay reviewable; the underlying signal (233 high-risk + 223 code-node workflows) suggests the full review backlog is larger.
- The 289 exact-content duplicate groups from the pre-existing collection are unchanged. The duplicate analyzer flags them; deduping is a separate human pass.
- Title-similarity has a 275-cluster long tail; many are intentional
(per-category templates in the generated pack are marked
keep) but reviewers should still skim the cross-origin clusters.
Yes — for review only. No commits, no pushes, no branches were created. The diff set is:
schemas/workflow-ir.schema.json— one enum extension.tools/*.py— seven new tools (no modifications to existing tools)..github/workflows/audit.yml— new CI workflow.docs/ci-and-quality-gates.md— new docs page.README.md— additive Intelligence Core V1 section.catalog/unified-workflows.index.json— new generated artefact.reports/*— new generated reports.wiki/generated/— new generated folder; existing wiki sections untouched.- Audit refreshed
catalog/workflows.index.jsonandreports/workflow-audit.{json,md}(existing behaviour).
- schema-enum —
schemas/workflow-ir.schema.json(single-line enum addition). - tools —
tools/build_unified_catalog.py,tools/search_workflows.py,tools/validate_schemas.py,tools/analyze_duplicates.py,tools/propose_repairs.py,tools/prompt_to_ir.py,tools/build_wiki_seed.py. - ci —
.github/workflows/audit.yml+docs/ci-and-quality-gates.md. - catalog —
catalog/unified-workflows.index.json+ refreshedcatalog/workflows.index.json. - reports — generated reports +
reports/intelligence-core-v1.*. - wiki-seed —
wiki/generated/new folder. - readme — README.md additive section last.
Run python tools/audit_workflows.py && python tools/validate_schemas.py
once more right before tagging — both should report all gates passed and
0 possible secret findings.
READY FOR HUMAN DIFF REVIEW.
Not committed. Not pushed. No branch created.