Install
$ agentstack add skill-kensaurus-cursor-kenji-docs-writer ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ● Environment & secrets Used
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Documentation Writer Skill
Create clear, useful documentation for developers.
MANDATORY: Pre-Documentation Checks
BEFORE writing any documentation, you MUST:
1. Read Existing Documentation
README.md (project root)
docs/ (existing docs)
src/[domain]/@_[domain]-README.md (feature-specific READMEs)
2. Check Documentation Patterns
Use Glob to find existing README files:
Glob: "**/*README.md" to find all READMEs
Glob: "**/*.md" in docs/ to find documentation patterns
3. Verify Code Matches Documentation
Read the actual code being documented to ensure accuracy:
- Check function signatures match documentation
- Verify example code actually works
- Confirm database schema matches any data documentation
4. Verification Statement (REQUIRED)
Before writing docs, state:
"Pre-documentation check:
- Existing docs read: [list]
- Documentation pattern identified: [pattern from existing READMEs]
- Code verified: [files read to ensure accuracy]"
README Template
# Project Name
Brief description of what this project does.
## Features
- Feature 1
- Feature 2
- Feature 3
## Quick Start
\`\`\`bash
# Install
npm install
# Run
npm start
\`\`\`
## Installation
### Prerequisites
- Node.js >= 18
- npm or pnpm
### Setup
\`\`\`bash
# Clone repository
git clone https://github.com/user/project.git
cd project
# Install dependencies
npm install
# Set up environment
cp .env.example .env
# Edit .env with your values
# Run development server
npm run dev
\`\`\`
## Usage
### Basic Example
\`\`\`typescript
import { Widget } from 'project';
const widget = new Widget({ option: 'value' });
widget.render();
\`\`\`
### Advanced Configuration
See [Configuration Guide](./docs/configuration.md)
## API Reference
See [API Documentation](./docs/api.md)
## Contributing
See [Contributing Guide](./CONTRIBUTING.md)
## License
MIT
Documentation Types
1. API Documentation
## createUser
Create a new user account.
### Signature
\`\`\`typescript
function createUser(params: CreateUserParams): Promise
\`\`\`
### Parameters
| Name | Type | Required | Description |
|------|------|----------|-------------|
| name | string | Yes | User's display name |
| email | string | Yes | Valid email address |
| role | 'admin' \| 'user' | No | User role (default: 'user') |
### Returns
`Promise` - The created user object
### Example
\`\`\`typescript
const user = await createUser({
name: 'John Doe',
email: 'john@example.com',
role: 'admin'
});
\`\`\`
### Errors
| Error | Cause |
|-------|-------|
| `ValidationError` | Invalid email format |
| `ConflictError` | Email already exists |
2. Code Comments
/**
* Calculate the total price including tax and discounts.
*
* @param items - Array of cart items
* @param taxRate - Tax rate as decimal (e.g., 0.1 for 10%)
* @param discount - Optional discount code
* @returns Total price in cents
*
* @example
* const total = calculateTotal(items, 0.1, 'SAVE10');
*/
function calculateTotal(
items: CartItem[],
taxRate: number,
discount?: string
): number {
// Sum up item prices
const subtotal = items.reduce((sum, item) => sum + item.price, 0);
// Apply discount if valid
const discountAmount = discount ? getDiscountAmount(discount, subtotal) : 0;
// Calculate tax on discounted amount
const taxableAmount = subtotal - discountAmount;
const tax = Math.round(taxableAmount * taxRate);
return taxableAmount + tax;
}
3. Architecture Documentation
# Architecture Overview
## System Components
\`\`\`
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Client │────▶│ API │────▶│ Database │
│ (React) │ │ (Node) │ │ (Postgres) │
└─────────────┘ └─────────────┘ └─────────────┘
│
▼
┌─────────────┐
│ Cache │
│ (Redis) │
└─────────────┘
\`\`\`
## Data Flow
1. Client sends request to API
2. API checks cache for data
3. If cache miss, query database
4. Store result in cache
5. Return response to client
## Key Decisions
### Why PostgreSQL?
- ACID compliance for financial data
- JSON support for flexible schemas
- Strong ecosystem
### Why Redis?
- Fast read performance
- Session storage
- Pub/sub for real-time features
Writing Guidelines
Be Concise
# ❌ Too verbose
This function is responsible for taking an array of user objects
and filtering them based on the active status property, returning
only those users who have an active status of true.
# ✅ Concise
Filter users by active status.
Use Examples
# ❌ Abstract description
The function accepts configuration options.
# ✅ With example
Configure the logger:
\`\`\`typescript
const logger = createLogger({
level: 'info',
format: 'json',
output: 'stdout'
});
\`\`\`
Structure Information
# ❌ Wall of text
To install the package you need to run npm install, then create
a .env file with your configuration, then run the migrations...
# ✅ Structured steps
## Setup
1. Install dependencies
\`\`\`bash
npm install
\`\`\`
2. Configure environment
\`\`\`bash
cp .env.example .env
\`\`\`
3. Run migrations
\`\`\`bash
npm run migrate
\`\`\`
Documentation Checklist
README
- [ ] Clear project description
- [ ] Quick start ( B[Frontend]
B --> C[API] C --> D[Database] C --> E[Cache] \\\`
### Sequence Diagram
```markdown
\`\`\`mermaid
sequenceDiagram
User->>+API: POST /login
API->>+DB: Verify credentials
DB-->>-API: User data
API-->>-User: JWT token
\`\`\`
Keep Docs Updated
# In PR template:
## Documentation
- [ ] README updated (if needed)
- [ ] API docs updated (if endpoints changed)
- [ ] Code comments added (for complex logic)
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: kensaurus
- Source: kensaurus/cursor-kenji
- License: MIT
- Homepage: https://github.com/kensaurus/cursor-kenji
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.