重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
github-ai-features-2025 by josiahsiegel/claude-plugin-marketplace
npx skills add https://github.com/josiahsiegel/claude-plugin-marketplace --skill github-ai-features-2025强制规定:在 Windows 上始终对文件路径使用反斜杠
在 Windows 上使用编辑或写入工具时,必须在文件路径中使用反斜杠 (\),而不是正斜杠 (/)。
示例:
D:/repos/project/file.tsxD:\repos\project\file.tsx这适用于:
除非用户明确要求,否则切勿创建新的文档文件。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
大型科技公司(谷歌:35,000+ 名开发者)使用的现代工作流程:
# 从 main 创建任务分支
git checkout main
git pull origin main
git checkout -b task/add-login-button
# 进行小改动
git add src/components/LoginButton.tsx
git commit -m "feat: add login button component"
# 推送并创建 PR(同一天)
git push origin task/add-login-button
gh pr create --title "Add login button" --body "Implements login UI"
# 数小时内合并,删除分支
gh pr merge --squash --delete-branch
AI 在密钥到达仓库前进行检测:
# 尝试提交密钥
git add config.py
git commit -m "Add config"
git push
# GitHub AI 检测到密钥:
"""
⛔ 推送被密钥扫描阻止
发现:AWS 访问密钥
模式:AKIA[0-9A-Z]{16}
文件:config.py:12
选项:
1. 移除密钥并重试
2. 标记为误报(需要理由)
3. 向管理员请求审查
"""
# 修复:使用环境变量
# config.py
import os
aws_key = os.environ.get('AWS_ACCESS_KEY')
git add config.py
git commit -m "Use env vars for secrets"
git push # ✅ 成功
AI 驱动的静态分析:
# .github/workflows/codeql.yml
name: "CodeQL"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
analyze:
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript, python, java
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
检测内容:
AI 自动修复安全漏洞:
# CodeQL 检测到的易受攻击代码
def get_user(user_id):
query = f"SELECT * FROM users WHERE id = {user_id}" # ❌ SQL 注入
return db.execute(query)
# Copilot 自动修复建议:
def get_user(user_id):
query = "SELECT * FROM users WHERE id = ?"
return db.execute(query, (user_id,)) # ✅ 参数化查询
# 一键应用修复
用于自动化错误修复和 PR 生成的 AI 代理:
# .github/workflows/ai-bugfix.yml
name: AI Bug Fixer
on:
issues:
types: [labeled]
jobs:
autofix:
if: contains(github.event.issue.labels.*.name, 'bug')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Analyze Bug
uses: github/ai-agent@v1
with:
task: 'analyze-bug'
issue-number: ${{ github.event.issue.number }}
- name: Generate Fix
uses: github/ai-agent@v1
with:
task: 'generate-fix'
create-pr: true
pr-title: "Fix: ${{ github.event.issue.title }}"
# GitHub 代理自动创建 PR
# 当问题被标记为 "enhancement" 时:
# 1. 分析问题描述
# 2. 生成实现代码
# 3. 创建测试
# 4. 打开带有解释的 PR
# 示例:问题 #42 "添加深色模式切换"
# 代理创建包含以下内容的 PR:
# - DarkModeToggle.tsx 组件
# - ThemeContext.tsx 提供者
# - 主题切换测试
# - 文档更新
AI 分析 PR 中的依赖项变更:
# .github/workflows/dependency-review.yml
name: Dependency Review
on: [pull_request]
permissions:
contents: read
jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Dependency Review
uses: actions/dependency-review-action@v3
with:
fail-on-severity: high
fail-on-scopes: runtime
AI 洞察:
# 早上:与 main 同步
git checkout main
git pull origin main
# 创建任务分支
git checkout -b task/user-profile-api
# 以小型迭代工作(2-4 小时)
# 第一次迭代:API 端点
git add src/api/profile.ts
git commit -m "feat: add profile API endpoint"
git push origin task/user-profile-api
gh pr create --title "Add user profile API" --draft
# 继续工作:添加测试
git add tests/profile.test.ts
git commit -m "test: add profile API tests"
git push
# 标记为准备审查
gh pr ready
# 获取审查(应在数小时内完成)
# 同一天合并
gh pr merge --squash --delete-branch
# 下一个任务:从 main 重新开始
git checkout main
git pull origin main
git checkout -b task/profile-ui
# ❌ 不好:大型不频繁提交
git add .
git commit -m "Add complete user profile feature with API, UI, tests, docs"
# 50 个文件更改,2000 行
# ✅ 好:小规模频繁提交
git add src/api/profile.ts
git commit -m "feat: add profile API endpoint"
git push
git add src/components/ProfileCard.tsx
git commit -m "feat: add profile card component"
git push
git add tests/profile.test.ts
git commit -m "test: add profile tests"
git push
git add docs/profile.md
git commit -m "docs: document profile API"
git push
# 每次提交:1-3 个文件,50-200 行
# 更轻松的审查,更快的合并,更少的冲突
# 仓库设置 → 安全 → 密钥扫描
# 启用:推送保护 + AI 检测
2. 配置 CodeQL:
# 添加 .github/workflows/codeql.yml
# 为项目中的所有语言启用
3. 使用 Copilot 自动修复:
# 每周审查安全警报
# 应用 Copilot 建议的修复
# 合并前进行测试
4. 实施主干开发:
# 分支生命周期:<1 天
# 提交频率:每 2-4 小时
# 主分支:始终可部署
5. 利用 GitHub 代理:
# 自动化:错误分类、PR 创建、依赖项更新
# 审查:合并前所有 AI 生成的代码
每周安装次数
58
仓库
GitHub 星标数
21
首次出现
Jan 24, 2026
安全审计
安装于
claude-code46
opencode44
gemini-cli43
codex41
cursor39
antigravity36
MANDATORY: Always Use Backslashes on Windows for File Paths
When using Edit or Write tools on Windows, you MUST use backslashes (\) in file paths, NOT forward slashes (/).
Examples:
D:/repos/project/file.tsxD:\repos\project\file.tsxThis applies to:
NEVER create new documentation files unless explicitly requested by the user.
Modern workflow used by largest tech companies (Google: 35,000+ developers):
# Create task branch from main
git checkout main
git pull origin main
git checkout -b task/add-login-button
# Make small changes
git add src/components/LoginButton.tsx
git commit -m "feat: add login button component"
# Push and create PR (same day)
git push origin task/add-login-button
gh pr create --title "Add login button" --body "Implements login UI"
# Merge within hours, delete branch
gh pr merge --squash --delete-branch
AI detects secrets before they reach repository:
# Attempt to commit secret
git add config.py
git commit -m "Add config"
git push
# GitHub AI detects secret:
"""
⛔ Push blocked by secret scanning
Found: AWS Access Key
Pattern: AKIA[0-9A-Z]{16}
File: config.py:12
Options:
1. Remove secret and try again
2. Mark as false positive (requires justification)
3. Request review from admin
"""
# Fix: Use environment variables
# config.py
import os
aws_key = os.environ.get('AWS_ACCESS_KEY')
git add config.py
git commit -m "Use env vars for secrets"
git push # ✅ Success
AI-powered static analysis:
# .github/workflows/codeql.yml
name: "CodeQL"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
analyze:
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript, python, java
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
Detects:
AI automatically fixes security vulnerabilities:
# Vulnerable code detected by CodeQL
def get_user(user_id):
query = f"SELECT * FROM users WHERE id = {user_id}" # ❌ SQL injection
return db.execute(query)
# Copilot Autofix suggests:
def get_user(user_id):
query = "SELECT * FROM users WHERE id = ?"
return db.execute(query, (user_id,)) # ✅ Parameterized query
# One-click to apply fix
AI agents for automated bug fixes and PR generation:
# .github/workflows/ai-bugfix.yml
name: AI Bug Fixer
on:
issues:
types: [labeled]
jobs:
autofix:
if: contains(github.event.issue.labels.*.name, 'bug')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Analyze Bug
uses: github/ai-agent@v1
with:
task: 'analyze-bug'
issue-number: ${{ github.event.issue.number }}
- name: Generate Fix
uses: github/ai-agent@v1
with:
task: 'generate-fix'
create-pr: true
pr-title: "Fix: ${{ github.event.issue.title }}"
# GitHub Agent creates PR automatically
# When issue is labeled "enhancement":
# 1. Analyzes issue description
# 2. Generates implementation code
# 3. Creates tests
# 4. Opens PR with explanation
# Example: Issue #42 "Add dark mode toggle"
# Agent creates PR with:
# - DarkModeToggle.tsx component
# - ThemeContext.tsx provider
# - Tests for theme switching
# - Documentation update
AI analyzes dependency changes in PRs:
# .github/workflows/dependency-review.yml
name: Dependency Review
on: [pull_request]
permissions:
contents: read
jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Dependency Review
uses: actions/dependency-review-action@v3
with:
fail-on-severity: high
fail-on-scopes: runtime
AI Insights:
# Morning: Sync with main
git checkout main
git pull origin main
# Create task branch
git checkout -b task/user-profile-api
# Work in small iterations (2-4 hours)
# First iteration: API endpoint
git add src/api/profile.ts
git commit -m "feat: add profile API endpoint"
git push origin task/user-profile-api
gh pr create --title "Add user profile API" --draft
# Continue work: Add tests
git add tests/profile.test.ts
git commit -m "test: add profile API tests"
git push
# Mark ready for review
gh pr ready
# Get review (should happen within hours)
# Merge same day
gh pr merge --squash --delete-branch
# Next task: Start fresh from main
git checkout main
git pull origin main
git checkout -b task/profile-ui
# ❌ Bad: Large infrequent commit
git add .
git commit -m "Add complete user profile feature with API, UI, tests, docs"
# 50 files changed, 2000 lines
# ✅ Good: Small frequent commits
git add src/api/profile.ts
git commit -m "feat: add profile API endpoint"
git push
git add src/components/ProfileCard.tsx
git commit -m "feat: add profile card component"
git push
git add tests/profile.test.ts
git commit -m "test: add profile tests"
git push
git add docs/profile.md
git commit -m "docs: document profile API"
git push
# Each commit: 1-3 files, 50-200 lines
# Easier reviews, faster merges, less conflicts
# Repository Settings → Security → Secret scanning
# Enable: Push protection + AI detection
2. Configure CodeQL:
# Add .github/workflows/codeql.yml
# Enable for all languages in project
3. Use Copilot Autofix:
# Review security alerts weekly
# Apply Copilot-suggested fixes
# Test before merging
4. Implement Trunk-Based Development:
# Branch lifespan: <1 day
# Commit frequency: Every 2-4 hours
# Main branch: Always deployable
5. Leverage GitHub Agents:
# Automate: Bug triage, PR creation, dependency updates
# Review: All AI-generated code before merging
Weekly Installs
58
Repository
GitHub Stars
21
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykWarn
Installed on
claude-code46
opencode44
gemini-cli43
codex41
cursor39
antigravity36
Azure 配额管理指南:服务限制、容量验证与配额增加方法
138,600 周安装
变体分析技能:基于CodeQL和Semgrep的自动化漏洞变体检测与安全研究工具
44 周安装
Google Maps API 技能 - 完整 REST API 客户端,支持地理编码、路线、地点等20+服务
164 周安装
结构变异分析工作流:基于ACMG标准的临床基因组学解读与致病性分类指南
161 周安装
Base链智能合约部署指南:安全配置、测试网ETH获取与合约验证
161 周安装
Skill Installer - 一键安装AI技能工具,支持GitHub公共/私有仓库
160 周安装
Web Artifacts Builder:React + TypeScript + Vite 前端工件构建工具,一键打包为单HTML文件
160 周安装