New tools added across multiple domains: - Sales: lead-score, proposal-outline, objection-response - Marketing: competitor-brief, campaign-brief, social-post-draft, email-subject-score, audience-persona, content-calendar-plan, pricing-page-copy - HR: job-description-draft, interview-questions, performance-review-draft, onboarding-checklist, compensation-band, survey-analyze, org-chart-format, offer-letter-draft, exit-interview-summarize, policy-doc-format - Legal: contract-clause-scan, nda-template-draft, tos-readability, risk-clause-highlight, invoice-terms-extract, gdpr-data-map, copyright-notice, trademark-check - Finance: expense-categorize, invoice-data-extract, budget-variance, cash-flow-project, revenue-breakdown, ratio-analysis, tax-deduction-scan, reconciliation-match - Customer Experience: feedback-themes, churn-risk-score, nps-analysis, ticket-categorize, response-template-suggest, health-score-calculate, renewal-forecast - Education: lesson-plan-outline, quiz-generate, rubric-create, syllabus-format, progress-report-draft, learning-objective-write, curriculum-map Also includes improvements to 68 existing tool implementations. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| CHANGELOG.md | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| tsup.config.ts | ||
@tpmjs/tools-runbook-draft
Draft operational runbooks from procedure steps with commands and verification.
Installation
npm install @tpmjs/tools-runbook-draft
Usage
import { runbookDraftTool } from '@tpmjs/tools-runbook-draft';
const result = await runbookDraftTool.execute({
title: 'Database Migration Runbook',
steps: [
{
action: 'Backup the database',
command: 'pg_dump mydb > backup.sql',
verification: 'Check that backup.sql exists and has content',
},
{
action: 'Stop the application',
command: 'systemctl stop myapp',
verification: 'Run systemctl status myapp to confirm stopped',
},
{
action: 'Run migrations',
command: 'npm run migrate',
verification: 'Check migration logs for errors',
},
{
action: 'Start the application',
command: 'systemctl start myapp',
verification: 'Run systemctl status myapp to confirm running',
},
],
});
console.log(result.runbook);
// Markdown-formatted runbook with all steps
console.log(`Steps: ${result.stepCount}`);
console.log(`Has commands: ${result.hasCommands}`);
Features
- Generates structured markdown runbooks
- Supports optional command examples in code blocks
- Includes verification steps for each action
- Automatically adds prerequisites section when commands are present
- Timestamps generation for version tracking
Input
RunbookDraftInput
title(string, required): Title of the runbooksteps(array, required): Array of procedure steps
RunbookStep
action(string, required): Description of the action to performcommand(string, optional): Command to executeverification(string, optional): Verification step to confirm success
Output
RunbookDraft
runbook(string): Markdown-formatted runbook documentstepCount(number): Number of steps in the runbookhasCommands(boolean): Whether any steps include commands
License
MIT