Communitygithub.com

Cp

一个本地验证-提交-推送封装工具,专为Codex设计。仅当用户明确输入 `/cp` 或要求完成当前工作时使用,包括运行相关本地检查、暂存指定文件、在当前分支上提交并推送。

Cp 是什么?

Cp 技能是一个针对 Codex 的轻量级完成模式,用于在实现工作完成后,将本地更改通过验证、提交并推送到远程仓库。它优先运行仓库原生的安全检查(如 lint、格式化、测试等),并严格只暂存用户明确指定的文件,避免误操作提交无关或敏感内容。该技能支持直接向 `main` 或 `master` 分支提交,但也会遵循仓库的分支策略要求。它能够自动生成符合仓库风格的简洁提交信息,并处理上游追踪缺失的情况。Cp 适用于 `/cp` 等特定触发词,适合需要一键完工作任务并推送的场景。

兼容平台~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/dgk-dev/dgk-gpt/cp

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Cp 是做什么的?

在实现完成后,将此作为轻量级完成模式使用。

cp 是推送前的本地门禁:先验证,然后在当前分支上提交并推送预期的更改。

默认流程

  1. 检查:
  • git status
  • 当前分支
  • 本次任务预期的文件
  • 如有需要,检查最近的提交信息风格
  1. 运行仓库惯用的本地安全检查,优先于提交。
  • 优先使用仓库原生命令,而非自行编造的命令。
  • 优先运行最窄的安全检查:修改文件的 lint/格式化检查、受影响包测试或针对性构建。
  • 如果仓库唯一可靠的检查是更广泛的,则运行更广泛的命令。
  1. 如果广泛的本地检查因预期更改集之外的不相关脏文件而失败,则停止并明确报告,而非修复或暂存那些无关文件。
  2. 仅显式暂存预期文件。
  3. 如果未提供提交信息,则生成一条简洁的、符合仓库风格的常规提交信息。
  4. 在当前分支上提交。
  • 如果仓库或用户的工作流允许,可以直接提交到 main 或 master 分支。
  • 如果仓库明确要求使用短生命周期分支,则遵循该要求。
  1. 推送当前分支。
  • 如果上游追踪缺少,则设置上游追踪后推送。

规则

  • 绝不使用 git add .、git add -A 或类似的广泛暂存命令。
  • 绝不提交来自其他任务或会话的无关本地更改。
  • 绝不意外提交秘密信息、.env 文件、凭据或生成的冗余文件。
  • 绝不静默跳过验证;需说明运行了什么以及跳过了什么。
  • 除非用户明确要求,绝不强制推送。
  • 除非用户明确要求,绝不创建或要求 PR。

良好触发词

  • "/cp"
  • "커밋하고 푸시해줘"
  • "메인에 올려"
  • "이제 검증하고 바로 푸시해"

避免

  • 如果用户明确只要求“仅提交”或“仅推送”,则不要使用此技能只执行其中一项操作。
  • 不要推断有权推送当前分支以外的其他分支。
  • 不要隐藏跳过或排除的文件;如果它们重要,应简要提及。

完成

返回:

  • 推送的分支
  • 验证是否运行或跳过
  • 提交信息
  • 提交哈希
  • 故意排除的文件(如果有)

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

相关技能