Comprehensive documentation and API endpoint standards with Spanish conventions, including architecture docs, technical specs, and SVG graph output requirements.
Generate and maintain comprehensive technical documentation following Spanish conventions with strict standards for architecture, API endpoints, and technical specifications.
When generating graphs or visualizations from any script:
Create and maintain the following directory structure:
```
project-root/
├── README.md (main project overview)
├── documentacion/
│ ├── {subproject-1}/
│ │ ├── README.md
│ │ ├── arquitectura.md
│ │ ├── definicion_tecnica.md
│ │ └── endpoints.md (for APIs)
│ └── {subproject-2}/
│ ├── README.md
│ ├── arquitectura.md
│ ├── definicion_tecnica.md
│ └── endpoints.md (for APIs)
```
For each subproject in `documentacion/{subproyecto}/`, create:
**README.md**
**arquitectura.md**
**definicion_tecnica.md**
**endpoints.md** (for APIs only)
For each endpoint in `endpoints.md`, use this mandatory structure:
```markdown
**HTTP_METHOD** `/route/path`
Brief description of the endpoint's purpose.
#### Headers
```
Authorization: Bearer <token>
Content-Type: application/json
```
#### Query Parameters (if applicable)
#### Request Body
```json
{
"field": "value",
"required_field": "example"
}
```
#### Successful Response (200/201)
```json
{
"success": true,
"data": {
"id": "123",
"field": "value"
}
}
```
#### Error Response (400)
```json
{
"success": false,
"message": "Error description",
"errors": []
}
```
#### Error Response (401)
```json
{
"success": false,
"message": "Unauthorized"
}
```
#### Error Response (403)
```json
{
"success": false,
"message": "Forbidden"
}
```
#### Error Response (404)
```json
{
"success": false,
"message": "Resource not found"
}
```
#### Error Response (422)
```json
{
"success": false,
"message": "Validation error",
"errors": []
}
```
#### Error Response (500)
```json
{
"success": false,
"message": "Internal server error"
}
```
#### Endpoint Characteristics
```
Include these sections:
1. **General Information**
- Base URL
- Authentication methods
- Response formats
- Versioning
2. **Endpoints by Functionality**
- Authentication
- Users
- Resources (grouped logically)
3. **Error Codes**
- HTTP status codes
- System-specific error codes
- Error message formats
4. **Usage Examples**
- Complete workflow examples
- Common use cases
- Integration examples
5. **Navigation**
- Links to related documentation
- Cross-references
**CRITICAL - Pre-Commit Checks**:
**General Git Rules**:
When documenting APIs and systems:
When creating a new API endpoint:
1. Implement the endpoint code
2. Before committing, create/update `endpoints.md` with full documentation
3. Ensure all error responses are documented
4. Add authentication and permission requirements
5. Include example requests and responses
6. Commit code and documentation together
When creating a new subproject:
1. Create directory structure: `documentacion/{subproject}/`
2. Generate all required documents: README.md, arquitectura.md, definicion_tecnica.md
3. Add API documentation if applicable
4. Interlink all documents
5. Update main project README.md
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/spanish-documentation-standards/raw