erode-app/erode / .agents/skills/likec4-syntax-sync
likec4-syntax-sync
VerifiedSync the local LikeC4 syntax guide with the upstream LikeC4 skills repository (github.com/likec4/likec4/tree/main/skills/likec4-dsl). Use when the user asks to update, sync, or check the LikeC4 syntax guide, when upstream LikeC4 DSL changes are suspected, or when mentioning likec4 syntax sync, DSL drift, or syntax guide update.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.0 KB |
SKILL.md
View on GitHub---
name: likec4-syntax-sync
description: >-
Sync the local LikeC4 syntax guide with the upstream LikeC4 skills repository
(github.com/likec4/likec4/tree/main/skills/likec4-dsl). Use when the user asks
to update, sync, or check the LikeC4 syntax guide, when upstream LikeC4 DSL
changes are suspected, or when mentioning likec4 syntax sync, DSL drift, or
syntax guide update.
---
# LikeC4 Syntax Sync
Keep `packages/core/src/adapters/likec4/prompts/likec4-syntax-guide.md` in sync
with the canonical upstream LikeC4 DSL skill at `likec4/likec4`.
Our guide is injected into every model-patch prompt via `{{syntaxGuide}}`, so it
must stay both accurate and concise (under 40 lines).
## Step 1: Fetch Upstream
Fetch the relevant upstream files using `gh api`:
```bash
gh api repos/likec4/likec4/contents/skills/likec4-dsl/SKILL.md --jq '.content' | base64 -d
gh api repos/likec4/likec4/contents/skills/likec4-dsl/references/model.md --jq '.content' | base64 -d
gh api repos/likec4/likec4/contents/skills/likec4-dsl/references/identifier-validity.md --jq '.content' | base64 -d
gh api repos/likec4/likec4/contents/skills/likec4-dsl/references/specification.md --jq '.content' | base64 -d
```
Only these files contain model-patching-relevant syntax. Skip all others,
including `references/relationships-bidirectional.md` and `references/diffs.md`
(their syntax is above the version floor, see Step 3).
## Step 2: Compare
Read the local file at `packages/core/src/adapters/likec4/prompts/likec4-syntax-guide.md`
and compare against upstream for changes in these areas:
- **Identifiers**: validity rules, allowed characters, start-with constraints
- **Elements**: syntax forms (`ID = KIND` and `KIND ID`), nesting, property order
- **Relationships**: implicit/explicit source, typed (`-[KIND]->`, `.REL_KIND`), `this`/`it`
- **Properties**: `title`, `summary`, `description`, `technology`, `#tag`, `link`, `metadata` (`notes` is not valid in `model` on 1.45.0 or 1.59.3)
- **Strings**: quoting styles, escaping, triple-quote multi-line markdown
- **Extend patterns**: `extend FQN { }` for elements and which properties it allows
- **Anti-patterns**: dots in identifiers, parent-child relationships, redefinition vs extend
**Explicitly skip** (not relevant to model-patching): views, deployment, CLI commands,
styling/shapes/colors/icons, dynamic views, predicates, wildcards, project configuration,
response discipline, eval guidance.
**Excluded until the version floor is raised** (see Step 3): relationship `extend`
(1.46.0), bidirectional `<->` (1.59.3), `[[fqn]]` Markdown links, `descriptionFile`
and `diff` blocks (1.61.0). The guide may name them in a "Do NOT use" rule but must
not teach them.
## Step 3: Update
Apply changes to the local file following these rules:
- Keep under 40 lines total
- Preserve the existing section structure and `## LikeC4 DSL SYNTAX REFERENCE` heading
- Use terse reference-card style, not explanatory prose
- Only add information that affects model-patching correctness
- Do not duplicate existing content
- Only teach syntax supported by erode's minimum LikeC4 version (see below)
### Version floor
erode writes patches into users' repos, which may run an older LikeC4 than
upstream `main`. The guide must only teach syntax available in
`MIN_LIKEC4_VERSION` (`packages/core/src/adapters/likec4/version-check.ts`).
Before adding a construct that is not already in the guide, find the release
that introduced it and compare it with the floor:
```bash
gh release list --repo likec4/likec4 --limit 60
gh release view v1.59.3 --repo likec4/likec4
```
Grep the release notes from the floor version onward for the construct. If it
was introduced after the floor, or you cannot confirm it predates the floor,
leave it out. When `MIN_LIKEC4_VERSION` is raised, revisit the excluded list in
Step 2.
## Step 4: Verify
```bash
npm run test
```
Confirm:
- Tests pass
- File starts with `## LikeC4 DSL SYNTAX REFERENCE`
- File is under 40 lines
- No syntax newer than `MIN_LIKEC4_VERSION` is taught
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |