知识桥接,公司规范索引,反模式库
Scanned 9/5/2026
Install to Claude Code
npx -y skills add WenJunDuan/Rlues --skill knowledge-bridge --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Knowledge Bridge?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/wenjunduan-knowledge-bridge-1d8216f9)More formats (shields.io, HTML) on the badges page.
---
name: knowledge-bridge
description: 知识桥接,公司规范索引,反模式库
---
# Knowledge Bridge Skill
知识桥接,连接外部规范和项目约定。
## 外部规范索引
```markdown
## 公司规范(按需配置路径)
- **前端规范**: .claude/references/frontend-standards.md
- **后端规范**: .claude/references/backend-standards.md
- **API规范**: [配置路径]
```
## 反模式库 (Anti-Patterns)
### 通用反模式
```typescript
// ❌ 禁止: 使用 any 类型
const data: any = response.data;
// ✅ 正确: 明确类型
const data: UserResponse = response.data;
```
```typescript
// ❌ 禁止: 硬编码 Secret
const apiKey = 'sk-xxx';
// ✅ 正确: 环境变量
const apiKey = process.env.API_KEY;
```
### 数据库反模式
```typescript
// ❌ 禁止: N+1查询
for (const user of users) {
const orders = await db.query('...', [user.id]);
}
// ✅ 正确: 批量查询
const orders = await db.query('... WHERE user_id IN (?)', [userIds]);
```
### 安全反模式
```typescript
// ❌ 禁止: SQL拼接
const sql = `SELECT * FROM users WHERE id = ${userId}`;
// ✅ 正确: 参数化查询
const user = await db.query('SELECT * FROM users WHERE id = $1', [userId]);
```
## 项目约定
在 `project_document/.ai_state/conventions.md` 中记录项目特定约定。
## 规范更新
代码审查意见应沉淀为规则:
1. 发现问题
2. 记录到反模式库
3. 更新自动化检查
4. 形成改进闭环
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.
SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.
Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation
Python backend development expertise for FastAPI, security patterns, database operations, Upstash integrations, and code quality. Use when: (1) Building REST APIs with FastAPI, (2) Implementing JWT/OAuth2 authentication, (3) Setting up SQLAlchemy/async databases, (4) Integrating Redis/Upstash caching, (5) Refactoring AI-generated Python code (deslopification), (6) Designing API patterns, or (7) Optimizing backend performance.
PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.