auto-dev
Auto Dev
This skill is designed for reuse across projects. Keep business-specific behavior in project packs and inject it via .skills-hub/ hooks.
Guardrails
- Confirm scope with
pwd; keep all reads/writes inside the current worktree. - Read the current branch with
git rev-parse --abbrev-ref HEAD. - If the branch is
devormain, stop and ask the user to switch by default. - Never checkout, merge, rebase, or push
devormainby default. - Never push to any remote branch other than the current branch name by default.
- Never force-push or rewrite remote history.
- For GitHub Actions deploys, require the branch to track
origin/<current-branch>; infer deploy targets from the remote branch state, not unpushed local commits. skills-hubexception (explicit user request only):- Allow operating on
mainonly in theskills-hubrepo. - Treat explicit confirmation as part of the protected command invocation, using
AUTO_DEV_ALLOW_SKILLS_HUB_MAIN=skills-hub-main-confirmed. - Allow commit/push to
origin/mainonly after task completion and explicit confirmation. - Keep all other protections unchanged.
- Allow operating on
Secure context input
- Request needed credentials, test accounts, or session values (e.g.,
app_session, test account/password) via command input. - Do not persist secrets in files or commit history.
Bundled scripts
- Resolve the installed skill directory as
<path-to-skill>, then run scripts from<path-to-skill>/scripts/. auto-dev-preflight.sh: verify repo scope and branch safety; emitsAUTO_DEV_REPO_ROOTandAUTO_DEV_BRANCH.auto-dev-deploy-dev.sh: generic workflow trigger runner. It reads project-specific deploy mapping fromAUTO_DEV_INFER_SCRIPTor<repo>/.skills-hub/auto-dev/infer-targets.sh.- The infer script reads changed files on
stdin. - It may emit
workflow=<workflow-file>andinput:<key>=<value>lines. - The deploy script provides
AUTO_DEV_DEPLOY_REF,AUTO_DEV_DEPLOY_SHA,AUTO_DEV_DIFF_BASE, andAUTO_DEV_DIFF_MERGE_BASEto the infer script.
- The infer script reads changed files on
Project-specific logic (keep out of core skill)
- Store business mapping, deployment knobs, and repo shortcuts in a project pack (for example
project-packs/<project>/...). - Keep
SKILL.mdand core scripts generic; inject business behavior via the infer script only.
Browser automation preference
- Default browser route:
playwrightskill for one-shot or reproducible browser flows from the terminal.- Use it for scripted repro, snapshots, screenshots, traces, data extraction, and quick web UI checks where restarting or re-opening the browser is acceptable.
- Escalate to
playwright-interactivewhen the task is iterative or stateful.- Use it for repeated reloads during local development, persistent browser handles, Electron apps, richer functional plus visual QA, or when the same page/session must survive multiple edits.
- Do not choose Chrome MCP as the default path or backup path.
- Only use a Chrome MCP workflow when the user explicitly asks for it, or when an existing project workflow already depends on it and it is confirmed working.
- For browser coverage beyond Chromium, prefer Playwright rather than adding a second MCP-specific branch. If the user needs the actual Safari app, ask for clarification.
Capabilities
- Use coding, testing, cloud, web, and browser automation skills for autonomous development and debugging, with Playwright CLI first and Playwright Interactive for persistent sessions.
- Allowed actions include inspecting Firestore/Storage data, accessing GCP, browsing web UIs, and triggering GitHub Actions for the current branch.
Draft PR and publish flow
- Preferred handoff after completion: create a draft PR for review context, e.g.,
gh pr create --draft --base main --head <current-branch>. - For
skills-hubonly, if the user explicitly requests direct publish tomain, commit and push toorigin/main. - Keep commit messages scoped and clear so draft PR and direct-push history are both auditable.
GitHub Actions deploy (current branch only)
- Trigger workflows with the current branch ref, e.g.,
gh workflow run dev.yml --ref <current-branch>. - Use the remote branch state as the source of truth for deploy inference; warn when local
HEADdiffers fromorigin/<current-branch>. - Default diff base is
origin/mainwhen available, otherwise resolveorigin/HEAD; require--diff-baseorAUTO_DEV_DIFF_BASEonly when neither exists. - Treat
--workflowandAUTO_DEV_WORKFLOWas explicit overrides; do not let the infer script silently replace them. - Confirm the workflow targets the dev environment for the current branch only.
Reporting
- Summarize changes and commands run.
- Provide quick verification steps when applicable.
More from xiaojiongqian/skills-hub
firebase-gcp-debug
Debug Firebase and Google Cloud issues (emulators, Cloud Functions v1/v2, Firestore/Auth/Storage) using `firebase` and `gcloud` CLIs. Use when investigating Firebase 部署/函数报错, emulator 启动失败, Firestore 权限/索引问题, or when you need to query GCP Cloud Logging / Cloud Run logs for Firebase-backed services.
8playwright-mcp
Use Playwright MCP for browser automation and regression checks when Chrome DevTools MCP is unavailable, when you need cross-browser coverage (Chromium/Firefox/WebKit), or when scripted browser control is more reliable.
7system-architect
系统架构思维。用于讨论技术架构、系统设计、协议规范、技术选型等需要"从本质出发设计系统"的工作。当用户提到架构设计、系统设计、协议讨论、技术方案、设计原则时触发。也用于审查已有架构的合理性。即使用户只说"这个系统该怎么设计"、"帮我想想架构"、"这个方案合理吗",也应触发。
7git-sync-dev-submodules
>
7gh-address-comments
Help address review/issue comments on the open GitHub PR for the current branch using gh CLI; verify gh auth first and prompt the user to authenticate if not logged in.
7eng-lead
工程实现领导力。负责从架构设计到可运行代码的工程执行——模块拆分、团队调度、质量守护、知识管理。当用户需要将设计变成代码、管理工程团队、做工程决策时触发。即使用户只说"怎么把这个做出来"、"代码该怎么组织"、"团队怎么分工",也应触发。
5