[Request]: How can I make the strapi code to be ai-gened well by the [cursor ide or copilot, etc ai code tool]?
Summary
cursor - claude 3.7 doesn't seem to generate the strapi backend code well cursor? windsurf? Is there a setting that makes the strapi (backend) code well?
Why is it needed?
cursor - claude 3.7 doesn't seem to generate the strapi backend code well cursor? windsurf? Is there a setting that makes the strapi (backend) code well?
For example, since there is no manual for the backend service code of the upload plugin in the official documentation, we are looking for the core code ourselves and checking how to use it. https://github.com/strapi/strapi/blob/70576132e2aa188340b9b78ba8a932926b045374/packages/core/upload/server/src/services/upload.ts#L226 It seems that Cursor doesn't know much about the backend service function of the upload plugin....
How do other people do strapi custom development using AI code tools such as Cursor or Copilot? If I sign up for a paid plan... Do you provide detailed backend service function documentation...?
I think that for strapi to be used more, an AI code ide like cursor needs to generate strapi-related backend code well. I think that somehow [asking cursor for cooperation, teaching cursor settings, or providing consulting on cursor settings for money] is necessary. Since cursor doesn't generate strapi code well... I'm starting to want to move to nextjs;;
I've been using it for 2 years based on strapi. Strapi itself is good, but the custom development method itself has a unique development grammar compared to other CMS solutions. I'm suggesting this because I think it would make development much easier if ai code ide could solve this.
Suggested solution(s)
No response
Related issue(s)/PR(s)
No response
Hi @kincjf,
I'm Pierre, Lead Technical Writer at Strapi 👋
Thank you for your feedback, questions, and interesting ideas. I really feel for you, and I would love to see AI help you even better in your Strapi development.
Your request — especially the AI aspect — is partly outside the scope of this repository, which is specifically for maintaining the https://docs.strapi.io website. Still, here are a few tips that might help:
-
Have you tried asking your question on our community Discord? Other developers might have faced (and hopefully solved 🤞) similar issues.
-
Our AI-powered chatbot on docs.strapi.io might also help generate relevant code examples based on context. You can also try https://docs-next.strapi.io, which has the same AI bot, but a different search engine with a broader search scope.
-
We recently published llms.txt and llms-full.txt. They are designed to help AI tools better understand the structure and API of Strapi. Try feeding them into your AI IDE or tool to improve suggestions.
-
You might also want to check out https://contributor.strapi.io — some backend insights can be found there.
-
Have you tried uploading your full codebase (and even Strapi’s core repo) into a Claude 4 project or ChatGPT Codex? That has worked well in my own experience. Gemini 2.5 may also be a good option, though I haven't tested it personally yet.
-
AI tools are evolving quickly, and we’re working on exciting things too — though we can’t share more just yet. In the meantime, feel free to sign up at https://strapi.io/ai to stay in the loop 😉
Regarding your question: If I sign up for a paid plan, do you provide detailed backend service function documentation?
Our documentation is fully open source and freely accessible for all. Paid plans offer additional features and support, but no exclusive documentation. You can compare plans here:
- https://strapi.io/pricing-self-hosted
- https://strapi.io/pricing-cloud And if needed, you can contact our sales team for more tailored info.
We’re really grateful you’ve been using Strapi for 2 years, and we appreciate your ideas on how to improve the developer experience with AI. Stick with us — we’re working hard to make the future of Strapi even more developer-friendly, including on the AI front 💪
Thanks again!
Hello @pwizla , I just found out that there are llms.txt and llms-full.txt in the strapi/documentation repo. Thank you so much for letting me know.
I am relieved that the strapi team is also supporting ai code tools.
I posted the same question on discord https://discord.com/channels/811989166782021633/1379030681539313684, but no one has responded yet.
=> I think I should see how people respond to strapi coding using an AI IDE like cursor on the strapi discord.
I don't really understand what it means to upload a codebase [to the Claude 4 project or ChatGPT Codex], so I think I'll have to search and find out how to use it.
I also want to pay for and use strapi's own AI service, such as https://strapi.io/ai! I kept thinking that no code tools are becoming more inconvenient to use than AI code generators, because LLM's code gen function is powerful.
After hearing your answer, I am relieved that I can continue to use strapi in the ai era. Please keep up the good work. Thank you.
Always happy to help, and thank you for your kind words!
If you'd like to try Claude Projects or ChatGPT's Codex, you’d need to approach it the other way around: instead of bringing AI into your code tool, you’d bring your code into the AI tool — just please be cautious about sharing sensitive data!
Both features require a paid Claude or ChatGPT plan.
Here’s how I use Claude: within a project, you can connect a GitHub repo, which gets added to the LLM’s context. Then you just start a normal conversation, and the responses are tailored to your code:
https://github.com/user-attachments/assets/d050c8c2-045f-48c1-89ad-4fa6adbfa9bf
ChatGPT’s Codex can go even further — once your repo is connected, it can suggest pull requests, complete with file diffs and its “thought process,” and you can create the PR with a single click. Here’s a quick look:
https://github.com/user-attachments/assets/d5b1b256-854f-4ddb-94ab-ec02b8be08a9
In another developer page-cloudflare worker, I posted some prompting-related content, so I'm posting it here in case it'll be helpful for you when writing your docs.
https://developers.cloudflare.com/workers/get-started/prompting/
=> I wanted this kind of information!
Since strapi is not added as a default docs in cursor, I added https://docs.strapi.io/llms-full.txt (strapi v5 version) to cursor's custom docs list.
Since we're currently working with strapi v4, strapi v4's llms-full.txt. doesn't exist,
I registered all of the docs/dev-docs/*.md files as cursor rules. I'll have to test whether cursor generates strapi v4 code well.
That's some super valuable feedback, thanks for sharing! I could probably adapt the script I used for Strapi 5 docs to parse content and generate LLMs.txt files for v4. I'll have a look at it in the following days if that helps 😊
Hi @kincjf, It took a while because I had a lot of other priorities to handle, but Strapi v4 Docs now have LLMs.txt support 🥳 llms.txt llms-full.txt
The links will soon appear in the footer, it's currently deploying: