afd-typescript

Implement TypeScript AFD commands with Zod schemas and MCP server setup.

4|1|Updated Dec 30, 2025
One-click install
npx skills add https://github.com/lushly-dev/afd --skill afd-typescript
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: afd-typescript
Source: https://github.com/lushly-dev/afd/tree/main/.claude/skills/afd-typescript
Command: npx skills add https://github.com/lushly-dev/afd --skill afd-typescript

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides best practices and code examples for implementing Agent-First Development (AFD) commands using TypeScript, Zod schemas, and the AFD server ecosystem.

Core Features & Use Cases

  • Command Definition: Learn how to define commands with input/output schemas, error handling, and context.
  • Schema Design: Master Zod for robust input validation and data modeling.
  • Server Setup: Understand how to configure and run an AFD MCP server.
  • Testing: Implement unit and compliance tests for your commands.
  • Use Case: You are building a new feature for your application that requires agents to interact with your system. Use this Skill to learn how to define commands that are well-structured, validated, and testable in TypeScript.

Quick Start

Use the afd-typescript skill to define a new command named 'user-create' with a name and email input using Zod schemas.

Frequently Asked Questions about afd-typescript

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define MCP server commands with Zod schemas in TypeScript?

To define MCP server commands with Zod schemas in TypeScript, you establish structured command definitions that specify input validation, output schemas, error handling, and context for agent interaction. This ensures capabilities are portable and discoverable.

What is the best way to validate agent inputs in TypeScript?

The best way to validate agent inputs in TypeScript is using Zod schemas for robust data modeling. This pattern integrates directly into your command definition to ensure structured input validation before processing requests.

How do I set up an AFD server for agent development?

Setting up an AFD server for agent development involves configuring and running an AFD MCP server using TypeScript. This integration allows your application to expose structured, testable agent capabilities for external interaction.

Can I use TypeScript to test agent command definitions?

Yes, you can use TypeScript to test agent command definitions by implementing unit and compliance tests. Testing methodologies ensure your AFD commands remain reliable and function correctly within the server ecosystem.

Why do I need Zod for AFD command definition?

You need Zod for AFD command definition to enforce strict input validation and data modeling. It guarantees that commands receive correctly structured data, preventing runtime errors during agent server interactions.