用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Tresjs/tres --skill lint-commit-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | lint-commit-pr |
| description | Lint local changes, auto-fix, conventional commit, and optionally create PR |
Lint local changes, auto-fix issues, generate conventional commit message based on monorepo changes, and optionally create a PR.
Parameters: $ARGUMENTS
pr - Force create PR even if one existsno-pr - Skip PR creation, only commit and pushpr-only - Only create/update PR, skip lint and commit stepsHandle pr-only mode (if specified):
Check git status to identify modified files and ensure there are changes to commit
Run linter with auto-fix on affected projects only:
pnpm nx affected -t lint --fix to lint only projects with changesVerify lint passed - if there are remaining lint errors that couldn't be auto-fixed, report them and stop
Stage all changes using git add -A to ensure all modifications (including lint fixes) are staged
Analyze the changes:
git diff --staged to review all staged modificationsGenerate conventional commit message following this format:
<type>(<scope>): <description> where scope is the package/app namefix(core): resolve memory leak in dispose methodfeat(cientos): add new OrbitControls componentdocs(playground): update examples with new APIchore(docs): update navigation structuremonorepoShow the commit message to the user and ask for confirmation
Commit the staged changes with the approved message
Push to remote using git push -u origin HEAD
Handle PR creation based on parameter:
no-pr parameter: Stop here, changes are pushedgh pr view (will fail if no PR exists)pr parameter: Skip PR creation, inform user PR will auto-updatepr parameter provided: Create PR using gh pr create with:
pr-only mode)# Auto-detect (default behavior)
/lint-commit-pr
# Lints, commits, pushes
# Checks if PR exists with: gh pr view
# If PR exists: "✓ Changes pushed. Existing PR will update automatically"
# If no PR: Creates new PR
# Skip PR creation
/lint-commit-pr no-pr
# Force create PR
/lint-commit-pr pr
# Update existing PR only (skip lint/commit)
/lint-commit-pr pr-only
# Single package fix
packages/core/src/useRenderer.ts modified
→ fix(core): prevent renderer disposal on component unmount
# Feature in cientos
packages/cientos/src/components/Stars.vue added
→ feat(cientos): add Stars component for particle effects
# Documentation update
apps/docs/content/guide/getting-started.md modified
→ docs(docs): clarify installation instructions
# Multiple packages
packages/core and packages/cientos modified
→ feat(monorepo): add shared composable for camera controls
pnpm nx affected -t lint --fix before committingcore, cientos, docs)-u flag for first-time pushesgh pr view to check if PR exists (exit code 0 = exists)