apifox-core
Apifox 生成器核心工具(由 Agent 内部使用,不对外暴露)
When & Why to Use This Skill
Apifox Core is a foundational utility designed to streamline API development and automation. It empowers AI agents with intelligent recommendations for code generation, robust configuration management for Apifox projects, and automated validation of JSON schemas, ensuring a seamless and error-free API lifecycle management process.
Use Cases
- Automated API Code Generation: Wraps Docker-based OpenAPI Generator commands to automatically produce client SDKs and server stubs from API definitions.
- Intelligent Project Setup: Analyzes project structures to provide smart recommendations for the best generators and optimal output paths.
- Configuration Lifecycle Management: Programmatically reads, writes, and validates 'apifox.config.json' files to maintain consistency across development environments.
- Schema Compliance Checking: Utilizes JSON Schema validation to ensure that all API configurations meet industry standards before execution.
| name | apifox-core |
|---|---|
| description | Apifox 生成器核心工具(由 Agent 内部使用,不对外暴露) |
Apifox Core Plugin Utilities
提供智能推荐、配置管理等核心功能。
注意: 此模块由 apifox-generator Agent 内部使用,用户无需直接调用。
功能
1. 智能推荐
基于项目特征推荐最佳生成器和输出路径。
2. 配置管理
读写 apifox.config.json 配置文件。
3. 配置验证
验证配置文件格式(基于 JSON Schema)。
4. 代码生成
封装 Docker OpenAPI Generator 命令。
架构
核心模块:
SmartRecommender- 智能推荐算法ConfigManager- 配置文件管理CodeGenerator- Docker 命令封装(已简化,Agent 可直接调用 Docker)
使用
此 Skill 不提供独立接口,完全由 Agent 内部使用。Agent 会直接调用文件操作和 Docker 命令。