<!-- example:crm -->
# CRM software specification example

A small CRM for a sales team: keep contacts and track the deals made with them.

- [HTML version](https://specifica.org/examples/crm/)
- [Specifica format](https://specifica.org/format.md)
- [Editable Playground](https://playground.specifica.org/): choose CRM and Simple

## spec.md

### Requirements

- [ ] A user adds a contact with name, email, phone and company.
- [ ] A user finds contacts by name, email or company.
- [ ] A user creates a deal for a contact with a title, a value and an expected close date.
- [ ] A deal is open, won or lost, and a user can change it.
- [ ] A contact's page lists their deals, newest first.
- [ ] The home page shows the open deals and their total value.

### Edge Cases

- A second contact with the same email → refused, with a link to the first.
- A contact with deals is deleted → ask first; their deals are deleted too.
- A deal value that is negative or not a number → refused.

## tasks.md

### Build order

- [ ] Data model: contacts and deals
- [ ] Contacts: add, edit, delete, search
- [ ] Deals: create, edit, change status
- [ ] Contact page with their deals
- [ ] Home page: open deals and total value

Optional workflow reference: this spec can be the approved rule set for a make, check, correct and record cycle. [Cognium Autonomous Loop](https://cognium.net/how-it-works/).
