Skip to content

Improved create-twenty-app documentation for AI coding agents#20325

Open
Bredo wants to merge 3 commits intotwentyhq:mainfrom
Bredo:main
Open

Improved create-twenty-app documentation for AI coding agents#20325
Bredo wants to merge 3 commits intotwentyhq:mainfrom
Bredo:main

Conversation

@Bredo
Copy link
Copy Markdown

@Bredo Bredo commented May 6, 2026

Added a bit of enhanced context for better agentic coding, based on this Discord conversation.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

Welcome!

Hello there, congrats on your first PR! We're excited to have you contributing to this project.
By submitting your Pull Request, you acknowledge that you agree with the terms of our Contributor License Agreement.

Generated by 🚫 dangerJS against f2ef9c9

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 3 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="packages/create-twenty-app/src/constants/template/AGENT.md">

<violation number="1" location="packages/create-twenty-app/src/constants/template/AGENT.md:31">
P2: Logic functions are documented with the wrong filename pattern; the generator uses `*.function.ts`, not plain `*.ts`.</violation>

<violation number="2" location="packages/create-twenty-app/src/constants/template/AGENT.md:37">
P3: Navigation menu items are documented with an incomplete filename pattern; the actual convention includes the `.navigation-menu-item.ts` suffix.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

| -------------------- | ------------------------------------ | ------------------------------------- |
| Object | `yarn twenty add object` | `src/objects/<name>.ts` |
| Field | `yarn twenty add field` | `src/fields/<name>.ts` |
| Logic function | `yarn twenty add logicFunction` | `src/logic-functions/<name>.ts` |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Logic functions are documented with the wrong filename pattern; the generator uses *.function.ts, not plain *.ts.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/create-twenty-app/src/constants/template/AGENT.md, line 31:

<comment>Logic functions are documented with the wrong filename pattern; the generator uses `*.function.ts`, not plain `*.ts`.</comment>

<file context>
@@ -12,3 +19,22 @@
+| -------------------- | ------------------------------------ | ------------------------------------- |
+| Object               | `yarn twenty add object`             | `src/objects/<name>.ts`               |
+| Field                | `yarn twenty add field`              | `src/fields/<name>.ts`                |
+| Logic function       | `yarn twenty add logicFunction`      | `src/logic-functions/<name>.ts`       |
+| Front component      | `yarn twenty add frontComponent`     | `src/front-components/<name>.tsx`     |
+| Role                 | `yarn twenty add role`               | `src/roles/<name>.ts`                 |
</file context>
Suggested change
| Logic function | `yarn twenty add logicFunction` | `src/logic-functions/<name>.ts` |
| Logic function | `yarn twenty add logicFunction` | `src/logic-functions/<name>.function.ts` |

| Skill | `yarn twenty add skill` | `src/skills/<name>.ts` |
| Agent | `yarn twenty add agent` | `src/agents/<name>.ts` |
| View | `yarn twenty add view` | `src/views/<name>.ts` |
| Navigation menu item | `yarn twenty add navigationMenuItem` | `src/navigation-menu-items/<name>.ts` |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: Navigation menu items are documented with an incomplete filename pattern; the actual convention includes the .navigation-menu-item.ts suffix.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/create-twenty-app/src/constants/template/AGENT.md, line 37:

<comment>Navigation menu items are documented with an incomplete filename pattern; the actual convention includes the `.navigation-menu-item.ts` suffix.</comment>

<file context>
@@ -12,3 +19,22 @@
+| Skill                | `yarn twenty add skill`              | `src/skills/<name>.ts`                |
+| Agent                | `yarn twenty add agent`              | `src/agents/<name>.ts`                |
+| View                 | `yarn twenty add view`               | `src/views/<name>.ts`                 |
+| Navigation menu item | `yarn twenty add navigationMenuItem` | `src/navigation-menu-items/<name>.ts` |
+| Page layout          | `yarn twenty add pageLayout`         | `src/page-layouts/<name>.ts`          |
+
</file context>
Suggested change
| Navigation menu item | `yarn twenty add navigationMenuItem` | `src/navigation-menu-items/<name>.ts` |
| Navigation menu item | `yarn twenty add navigationMenuItem` | `src/navigation-menu-items/<name>.navigation-menu-item.ts` |

@FelixMalfait FelixMalfait self-assigned this May 6, 2026
FelixMalfait and others added 2 commits May 6, 2026 18:20
…old time

AGENTS.md is the cross-tool standard (Codex, Cursor, Copilot, Jules, Aider,
Amp); Claude Code falls back to it when no CLAUDE.md is present. LLMS.md
is not a real agent-instruction convention (commonly confused with the
unrelated llms.txt website spec) and is dropped.

The scaffolder copies AGENTS.md to CLAUDE.md so generated apps still get
the Claude-preferred filename without us maintaining duplicate content.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants