CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

helleopp/anycross-creator

Build, validate, and package AnyCross workflow files (the Lark/Feishu automation platform) as an importable .zip via a Python generator script. Covers the real flow.json schema (structure/steps, operation objects, the four spel types), connector/operation IDs harvested from verified exports, LarkBase field read/write formats, loop/branch/while nodes, and a diagnose-then-learn loop for import and run errors. Use whenever the user mentions AnyCross, asks to build/create/generate an AnyCross workflow or flow.json, wants a Lark automation packaged as a zip, or pastes an AnyCross error or failing node - even if they only describe the automation (webhook to Bitable to Google Docs, cron to Bitable to Lark card). Vietnamese: 'tao/sinh/dung workflow anycross'. Also for import failures ('Unable to parse uploaded file', URLFieldConvFail) and runtime node errors. NOT for n8n workflows or Lark Approval definitions.

Quality

96%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

pack_flow.pyscripts/

#!/usr/bin/env python3
"""Wrap a flow.json into an importable AnyCross zip.

Runs validate_flow.py first and refuses to pack a failing flow — a zip that
imports and misbehaves costs far more of the user's time than a failed build.

Usage:
    python pack_flow.py <flow.json> "<output-dir>/<Workflow Name>.zip"
    python pack_flow.py <flow.json> <out.zip> --skip-validate
"""
import argparse
import subprocess
import sys
import zipfile
from pathlib import Path


def main():
    ap = argparse.ArgumentParser()
    ap.add_argument("flow_json", type=Path)
    ap.add_argument("out_zip", type=Path)
    ap.add_argument("--skip-validate", action="store_true")
    args = ap.parse_args()

    if not args.flow_json.exists():
        sys.exit(f"no such file: {args.flow_json}")

    if not args.skip_validate:
        validator = Path(__file__).with_name("validate_flow.py")
        r = subprocess.run([sys.executable, str(validator), str(args.flow_json)])
        if r.returncode != 0:
            sys.exit("refusing to pack: validation failed (--skip-validate to override)")

    args.out_zip.parent.mkdir(parents=True, exist_ok=True)
    with zipfile.ZipFile(args.out_zip, "w", zipfile.ZIP_DEFLATED) as z:
        # flow.json at the archive root, no folder wrapper
        z.write(args.flow_json, "flow.json")

    print(f"packed: {args.out_zip}  ({args.out_zip.stat().st_size:,} bytes)")


if __name__ == "__main__":
    main()

SKILL.md

tile.json