I wan to create documents form my codebase

I completed my project and i want to create a professional SRS, LLD and HLD with architecture diagrams . Please help me how can i give prompt or the tool i can use in cursor to create a professional documentation

Easiest way is to create a skill and put it in a `.cursor` directory in the root of your project. Then prompt the agent to write documentation. It will see the skill and write them to your specs. Your skill can reference other files, too. I’ve taken the liberty of creating these for you, feel free to modify for your requirements:

Folder Structure:

software-documentation/
├── SKILL.md                        ← Core skill with full workflow
└── references/
    ├── srs-template.md             ← IEEE 830-aligned SRS template
    ├── hld-template.md             ← Full HLD with C4 diagrams
    ├── lld-template.md             ← Detailed LLD with APIs, schemas, sequences
    └── diagrams-guide.md           ← Mermaid diagram patterns & examples

What it produces:

  • **SRS**: IEEE 830 structure · FR/NFR with IDs · Use cases · Interfaces · Traceability matrix
  • **HLD**: C4 Context + Container diagrams · Component overview · Data/integration/infra/security architecture · ADRs
  • **LLD**: Per-module class diagrams · Full API specs · ERDs with SQL DDL · Sequence diagrams · Error catalogs
  • **Diagrams**: C4 (all 4 levels) · Sequence · ER · State machines · Class · Deployment/infra

documentation.zip (26.7 KB)

1 Like

Thank you so much for your help. But composer or other model is unable to do for LLD because of more datbase files and backend apis . SRS and HLD completed . LLD is not finished as agent is denying of doing the tasks breaking also . as its saying it cant complete the task

This is where you should switch to ask mode and work through the issues, then plan mode to come up with the steps to fix. Cursor is really good at writing its own skills and references!

1 Like

Thank you so much for your guidance. and i am newbie here to start with these. where can i learn these. i need tutorials to improve myself in using agents efficiently. Your guidance is a lot for me .