Skip to content

Latest commit

 

History

History

agent-structure-template

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

{Agent Name}

{Brief one-sentence description}

Features

  • Feature 1
  • Feature 2
  • Feature 3

Installation

npm install @lightspeedwp/{agent-id}

Quick Start

As a Claude Agent

import { {AgentClass} } from '@lightspeedwp/{agent-id}';

const agent = new {AgentClass}({
  apiKey: process.env.ANTHROPIC_API_KEY
});

const result = await agent.execute({
  // execution parameters
});

CLI Usage

npx @lightspeedwp/{agent-id} --help

Configuration

See config/config.json for all configuration options.

Environment Variables

  • ANTHROPIC_API_KEY - Claude API key (required)
  • AGENT_TIMEOUT - Request timeout in ms (default: 30000)
  • AGENT_RETRIES - Number of retries (default: 3)

Skills

This agent includes the following skills:

Testing

Run the test suite:

npm test

# With coverage
npm run test

# Watch mode
npm run test:watch

Test Framework: [Jest | Bats | Playwright]

Coverage Target: 80%

Test Files:

  • Unit tests: tests/unit/
  • Integration tests: tests/integration/ (if applicable)

Architecture

{agent-name}/
├── AGENT.md                 # Agent definition
├── CHANGELOG.md             # Version history
├── package.json             # Dependencies and scripts
├── README.md                # This file
├── skills/                  # Agent-specific skills
│   ├── {skill-1}/
│   └── {skill-2}/
├── tests/                   # Test files
│   ├── {agent-name}.test.js
│   ├── unit/
│   └── integration/
└── config/                  # Configuration
    └── config.json

API Reference

Main Class: {AgentClass}

class {AgentClass} {
  constructor(options: {AgentOptions})
  execute(input: {InputType}): Promise<{OutputType}>
  // ... other methods
}

See Full API Documentation for details.

Troubleshooting

Issue: [Common Problem]

Solution: [Steps to resolve]

For more issues, see FAQs or open an issue.

Contributing

  1. Read CONTRIBUTING.md
  2. Create a feature branch
  3. Write tests for new features
  4. Submit a PR

Dependencies

Production

  • @anthropic-ai/sdk - Claude API client

Development

  • jest - Testing framework
  • typescript - Type checking
  • eslint - Linting
  • prettier - Code formatting

See package.json for versions.

Changelog

See CHANGELOG.md for version history and breaking changes.

License

MIT - See LICENSE for details

Support


Maintained by: @{maintainer}

Last Updated: {date}