jules by sanjay3290/ai-skills
npx skills add https://github.com/sanjay3290/ai-skills --skill jules将编码任务委派给 Google 的 Jules AI 代理,在 GitHub 仓库上执行。
which jules || npm install -g @google/jules
jules remote list --repo
如果失败 → 提示用户运行 jules login(或在无头模式下使用 --no-launch-browser)
git remote get-url origin 2>/dev/null | sed -E 's#.*(github\.com)[/:]([^/]+/[^/.]+)(\.git)?#\2#'
如果不是 GitHub 仓库或不在 git 仓库中 → 请用户提供 --repo owner/repo
检查仓库是否在 jules remote list --repo 的输出中。如果不在 → 引导至
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
jules new "修复认证错误" # 自动检测仓库
jules new --repo owner/repo "添加单元测试" # 指定仓库
jules new --repo owner/repo --parallel 3 "实现 X" # 并行会话
cat task.md | jules new --repo owner/repo # 从标准输入读取
jules remote list --session # 所有会话
jules remote list --repo # 已连接的仓库
jules remote pull --session <id> # 查看差异
jules remote pull --session <id> --apply # 应用到本地
jules teleport <id> # 克隆并应用
LATEST=$(jules remote list --session 2>/dev/null | awk 'NR==2 {print $1}')
jules remote pull --session $LATEST
为提示词添加上下文以获得更好的结果:
BRANCH=$(git branch --show-current)
RECENT_FILES=$(git diff --name-only HEAD~3 2>/dev/null | head -10 | tr '\n' ', ')
RECENT_COMMITS=$(git log --oneline -5 | tr '\n' '; ')
STAGED=$(git diff --cached --name-only | tr '\n' ', ')
创建任务时使用:
jules new --repo owner/repo "修复认证模块中的错误。上下文:分支=$BRANCH,最近修改的文件:$RECENT_FILES"
常见任务的快捷命令:
FILES=$(git diff --name-only HEAD~3 2>/dev/null | grep -E '\.(js|ts|py|go|java)$' | head -5 | tr '\n' ', ')
jules new "为最近修改的文件添加单元测试:$FILES。包含边界情况和必要的模拟。"
FILES=$(git diff --name-only HEAD~3 2>/dev/null | grep -E '\.(js|ts|py|go|java)$' | head -5 | tr '\n' ', ')
jules new "为以下文件添加文档注释:$FILES。包含函数描述、参数、返回值和示例。"
jules new "修复代码库中的所有代码检查错误。运行检查工具,识别问题,并在保持功能性的前提下修复它们。"
PR_NUM=123
PR_INFO=$(gh pr view $PR_NUM --json title,body,files --jq '"\(.title)\n\(.body)\nFiles: \(.files[].path)"')
jules new "审查此拉取请求,查找错误、安全问题并提出改进建议:$PR_INFO"
Jules 完成后,将更改应用到新分支:
SESSION_ID="<id>"
TASK_DESC="<简要描述>"
# 创建分支、应用更改、提交
git checkout -b "jules/$SESSION_ID"
jules remote pull --session "$SESSION_ID" --apply
git add -A
git commit -m "feat: $TASK_DESC
Jules 会话: $SESSION_ID"
# 可选:推送并创建拉取请求
git push -u origin "jules/$SESSION_ID"
gh pr create --title "$TASK_DESC" --body "来自 Jules 会话 $SESSION_ID 的自动化更改"
等待会话完成:
SESSION_ID="<id>"
while true; do
STATUS=$(jules remote list --session 2>/dev/null | grep "$SESSION_ID" | awk '{print $NF}')
case "$STATUS" in
Completed)
echo "完成!"
jules remote pull --session "$SESSION_ID"
break ;;
Failed)
echo "失败。请查看:https://jules.google.com/session/$SESSION_ID"
break ;;
*User*)
echo "需要输入:https://jules.google.com/session/$SESSION_ID"
break ;;
*)
echo "状态:$STATUS - 等待 30 秒..."
sleep 30 ;;
esac
done
在仓库根目录创建以改善 Jules 结果:
# AGENTS.md
## 项目概述
[简要描述]
## 技术栈
- 语言:[TypeScript/Python/Go/等]
- 框架:[React/FastAPI/Gin/等]
- 测试:[Jest/pytest/go test/等]
## 代码规范
- [使用的代码检查工具/格式化工具]
- [命名约定]
- [文件组织]
## 测试要求
- 新功能的单元测试
- API 的集成测试
- 覆盖率目标:[X]%
## 构建与部署
- 构建:`[命令]`
- 测试:`[命令]`
| 状态 | 操作 |
|---|---|
| 规划中 / 进行中 | 等待 |
| 等待用户输入 | 在 Web 界面响应 |
| 已完成 | 拉取结果 |
| 失败 | 查看 Web 界面 |
每周安装量
98
仓库
GitHub 星标数
173
首次出现
2026年1月25日
安全审计
安装于
gemini-cli91
codex90
opencode90
github-copilot87
cursor81
kimi-cli79
Delegate coding tasks to Google's Jules AI agent on GitHub repositories.
which jules || npm install -g @google/jules
jules remote list --repo
If fails → tell user to run jules login (or --no-launch-browser for headless)
git remote get-url origin 2>/dev/null | sed -E 's#.*(github\.com)[/:]([^/]+/[^/.]+)(\.git)?#\2#'
If not GitHub or not in git repo → ask user for --repo owner/repo
Check repo is in jules remote list --repo. If not → direct to https://jules.google.com
jules new "Fix auth bug" # Auto-detected repo
jules new --repo owner/repo "Add unit tests" # Specific repo
jules new --repo owner/repo --parallel 3 "Implement X" # Parallel sessions
cat task.md | jules new --repo owner/repo # From stdin
jules remote list --session # All sessions
jules remote list --repo # Connected repos
jules remote pull --session <id> # View diff
jules remote pull --session <id> --apply # Apply locally
jules teleport <id> # Clone + apply
LATEST=$(jules remote list --session 2>/dev/null | awk 'NR==2 {print $1}')
jules remote pull --session $LATEST
Enrich prompts with current context for better results:
BRANCH=$(git branch --show-current)
RECENT_FILES=$(git diff --name-only HEAD~3 2>/dev/null | head -10 | tr '\n' ', ')
RECENT_COMMITS=$(git log --oneline -5 | tr '\n' '; ')
STAGED=$(git diff --cached --name-only | tr '\n' ', ')
Use when creating tasks:
jules new --repo owner/repo "Fix the bug in auth module. Context: branch=$BRANCH, recently modified: $RECENT_FILES"
Quick commands for common tasks:
FILES=$(git diff --name-only HEAD~3 2>/dev/null | grep -E '\.(js|ts|py|go|java)$' | head -5 | tr '\n' ', ')
jules new "Add unit tests for recently modified files: $FILES. Include edge cases and mocks where needed."
FILES=$(git diff --name-only HEAD~3 2>/dev/null | grep -E '\.(js|ts|py|go|java)$' | head -5 | tr '\n' ', ')
jules new "Add documentation comments to: $FILES. Include function descriptions, parameters, return values, and examples."
jules new "Fix all linting errors in the codebase. Run the linter, identify issues, and fix them while maintaining code functionality."
PR_NUM=123
PR_INFO=$(gh pr view $PR_NUM --json title,body,files --jq '"\(.title)\n\(.body)\nFiles: \(.files[].path)"')
jules new "Review this PR for bugs, security issues, and improvements: $PR_INFO"
After Jules completes, apply changes to a new branch:
SESSION_ID="<id>"
TASK_DESC="<brief description>"
# Create branch, apply, commit
git checkout -b "jules/$SESSION_ID"
jules remote pull --session "$SESSION_ID" --apply
git add -A
git commit -m "feat: $TASK_DESC
Jules session: $SESSION_ID"
# Optional: push and create PR
git push -u origin "jules/$SESSION_ID"
gh pr create --title "$TASK_DESC" --body "Automated changes from Jules session $SESSION_ID"
Wait for session to finish:
SESSION_ID="<id>"
while true; do
STATUS=$(jules remote list --session 2>/dev/null | grep "$SESSION_ID" | awk '{print $NF}')
case "$STATUS" in
Completed)
echo "Done!"
jules remote pull --session "$SESSION_ID"
break ;;
Failed)
echo "Failed. Check: https://jules.google.com/session/$SESSION_ID"
break ;;
*User*)
echo "Needs input: https://jules.google.com/session/$SESSION_ID"
break ;;
*)
echo "Status: $STATUS - waiting 30s..."
sleep 30 ;;
esac
done
Create in repo root to improve Jules results:
# AGENTS.md
## Project Overview
[Brief description]
## Tech Stack
- Language: [TypeScript/Python/Go/etc.]
- Framework: [React/FastAPI/Gin/etc.]
- Testing: [Jest/pytest/go test/etc.]
## Code Conventions
- [Linter/formatter used]
- [Naming conventions]
- [File organization]
## Testing Requirements
- Unit tests for new features
- Integration tests for APIs
- Coverage target: [X]%
## Build & Deploy
- Build: `[command]`
- Test: `[command]`
| Status | Action |
|---|---|
| Planning / In Progress | Wait |
| Awaiting User F | Respond at web UI |
| Completed | Pull results |
| Failed | Check web UI |
Weekly Installs
98
Repository
GitHub Stars
173
First Seen
Jan 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
gemini-cli91
codex90
opencode90
github-copilot87
cursor81
kimi-cli79
Azure RBAC 权限管理工具:查找最小角色、创建自定义角色与自动化分配
142,000 周安装
Redis最佳实践指南:数据结构、缓存模式与性能优化完整教程
1,200 周安装
MySQL 最佳实践指南:存储引擎、索引优化与性能调优技巧
1,100 周安装
Microsoft SharePoint API 集成指南:文档管理与团队协作技能
1,100 周安装
Favicon生成器 - 一键生成完整网站图标包,支持SVG/ICO/iOS/Android/PWA格式
1,100 周安装
Salesforce 开发者指南:Apex、LWC、SOQL 最佳实践与 DevOps 部署
1,100 周安装
小红书封面生成器 - 一键生成小红书风格封面图片,支持自定义主题,AI驱动
1,100 周安装