docs(skill): teach this season's flow anti-patterns in the automation authoring skill#1921
Merged
Merged
Conversation
… authoring skill
Upstream root-cause fix for AI authoring mistakes: the templates are AI-written,
so the highest-leverage prevention is teaching the AI the correct patterns at the
source, not only catching them at build.
Adds a "Valid-but-silently-wrong (passes build, fails at runtime)" subsection to
skills/objectstack-automation Common Pitfalls, capturing the anti-patterns fixed/
linted this season, each with ❌/✅:
- single-brace value interpolation; no `{{double}}` / bare `$ref` (#1315)
- `create_record` outputVariable is the RECORD → `{var.id}` (#1873)
- time-relative rules = schedule + range query, NOT record-change date-equality (#1874)
- `script` nodes must name a built-in actionType or a registered `function`;
inline `config.script` is not executed (#1870)
- conditions are bare CEL using only the stdlib; unknown fns fail the build;
don't wrap field refs in `{…}` (#1877/#1491)
Docs-only; `check:skill-docs` passes (frontmatter-derived docs unaffected); empty changeset.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upstream root-cause fix for AI authoring mistakes. The
objectstack-ai/templatesare AI-written, so the highest-leverage prevention is teaching the AI the correct patterns at the source — not only catching them at build. This complements the build-time guardrails landed this session (#1918 / #1920): skill = source, lint = safety net.What
Adds a "Valid-but-silently-wrong (passes build, fails at runtime)" subsection to
skills/objectstack-automation→ Common Pitfalls, capturing every anti-pattern fixed or linted this season, each with ❌/✅:{var}/{record.tags.0}(array index) /{$User.Id}/{TODAY()+30}; NOT{{double}}(formula dialect) or bare$source.id(literal). ([P2] flow:create_recordnode value semantics ambiguous (literal vs CEL vs macro vs ref) #1315)create_recordoutputVariableholds the RECORD →{newRec.id}, not{newRec}. ([P2] create_record outputVariable may not be referenceable in later flow nodes (needs confirm) #1873)schedule+ range query, not record-change==date-equality. ([P2] Provide a declarative time-relative trigger (avoid fragile date-equality on record-change) #1874)scriptnodes must name a callable — built-inactionTypeor afunctionviadefineStack({ functions }); inlineconfig.scriptis not executed. ([P1] Flow action/script nodes pointing to unregistered callables silently no-op; no template fn-registration path #1870){…}. ([P1] Flow trigger conditions with unknown functions are silently skipped (no error, passes build) #1877 / Record-change trigger plugin loads but flows never fire on data writes (7.4.1) #1491)Verification
Docs-only.
pnpm check:skill-docspasses (the generatedskills/README.md+content/docs/guides/skills.mdxderive from SKILL.md frontmatter, which is unchanged). Empty changeset (no package version change).🤖 Generated with Claude Code