open-leqi-assistant
乐企(open-leqi)项目分析与代码定位助手技能。当用户询问关于乐企发票系统、勾选能力、抵扣功能、用票接口等问题时触发。本技能提供项目架构理解、代码快速定位、业务流程分析和问题诊断建议。
Best use case
open-leqi-assistant is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
乐企(open-leqi)项目分析与代码定位助手技能。当用户询问关于乐企发票系统、勾选能力、抵扣功能、用票接口等问题时触发。本技能提供项目架构理解、代码快速定位、业务流程分析和问题诊断建议。
Teams using open-leqi-assistant should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/open-leqi-assistant/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How open-leqi-assistant Compares
| Feature / Agent | open-leqi-assistant | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
乐企(open-leqi)项目分析与代码定位助手技能。当用户询问关于乐企发票系统、勾选能力、抵扣功能、用票接口等问题时触发。本技能提供项目架构理解、代码快速定位、业务流程分析和问题诊断建议。
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
Best AI Skills for ChatGPT
Find the best AI skills to adapt into ChatGPT workflows for research, writing, summarization, planning, and repeatable assistant tasks.
ChatGPT vs Claude for Agent Skills
Compare ChatGPT and Claude for AI agent skills across coding, writing, research, and reusable workflow execution.
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
SKILL.md Source
# 乐企(open-leqi)项目分析助手
## 技能概述
本技能基于百望乐企数字开放平台项目,专注于帮助开发者快速理解项目架构、定位代码、解答业务问题。
## 项目结构
```
D:/leqi/open-leqi/
├── open-leqi-api/ # API模块 - Feign客户端定义
│ └── src/main/java/com/baiwang/platform/openleqi/
│ ├── api/ # 29个Feign Client接口
│ ├── model/ # 数据模型(163个)
│ └── farm/ # 农业相关API
│
├── open-leqi-service/ # 服务模块 - 核心业务实现
│ └── src/main/java/com/baiwang/platform/openleqi/
│ ├── web/ # 60个Controller控制器
│ ├── service/impl/ # 122个Service实现
│ ├── dao/ # 数据访问层(109个)
│ ├── common/ # 公共工具(508个)
│ ├── config/ # 配置类
│ ├── job/ # 定时任务(19个)
│ └── intergration/ # 外部集成(48个)
│
└── startup/ # 启动模块
```
## 核心业务模块
### 发票管理
| 模块 | Controller | Service | Client | 说明 |
|------|-----------|---------|--------|------|
| 发票主表 | `LqInvoiceMainController` | `LqInvoiceMainService` | `LqInvoiceMainClient` | 全电发票核心数据 |
| 发票明细 | `LqInvoiceDetailController` | `LqInvoiceDetailService` | `LqInvoiceDetailClient` | 发票商品明细 |
| 发票抵扣 | `LqInvoiceDeductController` | `LqInvoiceDeductService` | `LqInvoiceDeductClient` | 增值税抵扣勾选 |
| 发票作废 | - | `LqWarrantPoolService` | `LqWarrantSyncClient` | 发票作废管理 |
### 勾选能力
| 模块 | Controller | Service | 说明 |
|------|-----------|---------|------|
| 抵扣勾选 | `LqWithholdDeductController` | `LqWithholdDeductService` | 勾选用于抵扣 |
| 退税勾选 | `LqWarrantDeductController` | `LqWarrantDeductService` | 勾选用于退税 |
| 不抵扣勾选 | `LqNotdeductInitTaskController` | `LqNotdeductInitTaskService` | 不抵扣处理 |
| 农产品抵扣 | `LqFarmInvoiceDeductWeightController` | `LqFarmInvoiceDeductWeightService` | 农产品加计扣除 |
### 用票能力
| 模块 | Controller | Service | 说明 |
|------|-----------|---------|------|
| 实时用票 | `LqSyncController` | `LqSyncService` | 发票开具 |
| 下载发票 | `LqDownloadTaskController` | `LqDownloadTaskService` | 发票下载 |
| 发票池 | `LqInvoicePoolTaskController` | `LqInvoicePoolTaskService` | 发票池管理 |
## 代码定位规则
### 根据功能查询Controller
```java
// 发票相关: 搜索 "LqInvoice*Controller"
com.baiwang.platform.openleqi.web.LqInvoiceMainController
com.baiwang.platform.openleqi.web.LqInvoiceDetailController
com.baiwang.platform.openleqi.web.LqInvoiceDeductController
// 勾选相关: 搜索 "Lq*DeductController" 或 "Lq*WarrantController"
com.baiwang.platform.openleqi.web.LqWithholdDeductController
com.baiwang.platform.openleqi.web.LqWarrantDeductController
```
### 根据功能查询Service
```java
// 服务接口: com.baiwang.platform.openleqi.service.Lq*Service
// 服务实现: com.baiwang.platform.openleqi.service.impl.Lq*ServiceImpl
```
### 根据功能查询DAO
```java
// Entity: com.baiwang.platform.openleqi.dao.entity.Lq*
// Mapper: com.baiwang.platform.openleqi.dao.mapper.Lq*Mapper
```
## 常用业务场景
### 场景1: 查询发票信息
1. Controller: `LqInvoiceMainController` → `/web/lqInvoiceMain/queryPageList`
2. Service: `LqInvoiceMainService`
3. DAO: `LqInvoiceMainMapper`
### 场景2: 抵扣勾选处理
1. Controller: `LqWithholdDeductController` → 抵扣接口
2. Service: `LqWithholdDeductService`
3. 核心方法: `deduct()` / `undoDeduct()`
### 场景3: 发票开具
1. Controller: `LqSyncController`
2. Service: `LqSyncService.syncInvoice()`
3. 调用链: OFS系统 → 乐企 → 返回结果
## 项目规范
### Spring Boot规范
- 使用`@RequiredArgsConstructor`代替构造函数注入
- 使用Lombok简化代码
- 分层清晰: Controller → Service → DAO
### 命名规范
- Controller: `Lq{业务}Controller` (例: `LqInvoiceMainController`)
- Service: `Lq{业务}Service` (例: `LqInvoiceMainService`)
- Entity: `Lq{业务}` (例: `LqInvoiceMain`)
- Mapper: `Lq{业务}Mapper` (例: `LqInvoiceMainMapper`)
### API规范
- 使用Swagger `@Api` `@ApiOperation` 注解
- 使用`BWJsonResultDto`统一返回格式
- 使用`@Validated`进行参数校验
## 外部依赖
- **百望BOP SDK**: `com.baiwang.bop:baiwang-bopsdk:3.4.822`
- **父工程**: `com.baiwang.basictools:bw-spring-boot-starter-parent-security:2.7.196`
- **数据库**: MyBatis-Plus
## 快速查询
当用户提问时,按以下顺序响应:
1. **理解问题**: 识别用户询问的业务场景
2. **定位代码**: 根据上表找到对应的Controller/Service/DAO
3. **给出路径**: 提供完整的文件路径
4. **分析问题**: 简要说明代码逻辑
5. **建议方案**: 提供问题解决思路
## 参考文档
- `references/project-architecture.md` - 详细项目架构说明
- `references/business-flows.md` - 业务流程图说明
- `references/api-guide.md` - API接口文档索引Related Skills
openclaw-youtube
YouTube SERP Scout for agents. Search top-ranking videos, channels, and trends for content research and competitor tracking.
openclaw-search
Intelligent search for agents. Multi-source retrieval with confidence scoring - web, academic, and Tavily in one unified API.
openclaw-media-gen
Generate images & videos with AIsa. Gemini 3 Pro Image (image) + Qwen Wan 2.6 (video) via one API key.
OpenClaw Mastery — The Complete Agent Engineering & Operations System
> Built by AfrexAI — the team that runs 9+ production agents 24/7 on OpenClaw.
Contract Review Assistant
Analyze business contracts for risks, unfavorable terms, and missing clauses. Get a plain-English summary of what you're signing.
AI Coding Toolkit — Master Every AI Coding Assistant
> The complete methodology for 10X productivity with AI-assisted development. Covers Cursor, Windsurf, Cline, Aider, Claude Code, GitHub Copilot, and more — tool-agnostic principles that work everywhere.
seo-assistant
A client-facing SEO assistant grounded in Google's official SEO Starter Guide. Use this skill whenever a user mentions SEO, search rankings, Google visibility, meta descriptions, title tags, page titles, alt text, sitemaps, duplicate content, URL structure, or asks how to improve their website's presence in search results. Also trigger when a user shares a URL or webpage content and wants feedback, or asks for help writing any web content that needs to perform well in search. This skill covers auditing, content writing, and answering SEO questions — use it proactively even if the user only hints at wanting more website traffic or better Google rankings.
openclaw-safe-change-flow
Safe OpenClaw config change workflow with backup, minimal edits, validation, health checks, and rollback. Single-instance first; secondary instance optional.
jqopenclaw-node-invoker
统一通过 Gateway 的 node.invoke 调用 JQOpenClawNode 能力(file.read、file.write、process.exec、process.manage、system.run、process.which、system.info、system.screenshot、system.notify、system.clipboard、system.input、node.selfUpdate)。当用户需要远程文件读写、文件移动/删除、目录创建/删除、进程管理(列表/搜索/终止)、远程进程执行、命令可执行性探测、系统信息采集、截图采集、系统弹窗、系统剪贴板读写、输入控制(鼠标/键盘)、节点自更新、节点命令可用性排查或修复 node.invoke 参数错误时使用。
anime-assistant
二次元创作全能助手 - 专注于动漫、插画、角色设计、漫画创作、动画制作等二次元内容创作
openclaw-stock-skill
使用 data.diemeng.chat 提供的接口查询股票日线、分钟线、财务指标等数据,支持 A 股等市场。
openclaw-whatsapp
WhatsApp bridge for OpenClaw — send/receive messages, auto-reply agents, QR pairing, message search, contact sync