ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 5/5

ts-interface-miner

一个专门用于分析 TypeScript (.ts/.tsx) 文件的智能助手。它能够根据用户提供的关键词(功能描述、函数名、API 路径),精准定位相关接口定义。该技能深度解析代码结构与注释(JSDoc/单行注释),提取请求方法、路径、参数细节、响应结构及状态码,最终生成结构清晰、信息完整的 Markdown 表格文档。

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/9talk/ts-interface-miner
Or

What This Skill Does

The ts-interface-miner is a specialized AI agent skill designed for TypeScript developers working in complex codebases. It acts as an automated documentation engineer, scanning .ts and .tsx files to extract critical API information. By leveraging intelligent parsing of JSDoc, inline comments, and TypeScript type definitions, it builds structured, human-readable documentation. It effectively bridges the gap between raw, loosely documented code and professional API reference guides, saving developers hours of manual documentation effort.

Installation

You can integrate this skill into your OpenClaw environment using the following command: clawhub install openclaw/skills/skills/9talk/ts-interface-miner

Use Cases

  • Legacy Code Onboarding: Quickly generate documentation for undocumented APIs in large-scale enterprise projects.
  • Frontend-Backend Integration: Generate API requirement tables from frontend service files to confirm request parameters and response structures.
  • Code Review: Automatically verify if TypeScript interfaces are correctly annotated and aligned with functional descriptions.

Example Prompts

  1. "Analyze the file at src/services/auth.ts and generate an API document for the login function."
  2. "Find the interface for /api/v1/orders/list and list all required body parameters in a table."
  3. "Can you check the updateUserProfile function in user.service.ts and tell me what the response structure and potential error codes are?"

Tips & Limitations

  • Tips: For best results, ensure your project utilizes clear JSDoc comments (@param, @returns). The skill is optimized to resolve complex, nested TypeScript interfaces automatically.
  • Limitations: The tool is strictly designed for TypeScript files. While it handles common HTTP client patterns (axios, fetch), highly obfuscated code or non-standard custom network wrappers may require the AI to utilize more context provided by the user. If a type is dynamically generated at runtime without static definitions, the agent will report the inferred type instead.

Metadata

Author@9talk
Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-9talk-ts-interface-miner": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#typescript#documentation#api-miner#developer-tools#code-analysis
Safety Score: 5/5

Flags: file-read