Skip to content
Back to skills

New Repo

ASecurity

创建并推送托管仓库。验证平台后创建 Codex 托管仓库并推送。

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 16, 2026
ai-agentsgit

Works with

  • cli

Security analysis

A100/100

Scanned October 16, 2026

npx -y skills add 0mlkrizzz655335v/claude-skills-zh --skill new-repo --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of New Repo?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for New Repo
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/0mlkrizzz655335v-new-repo/badge)](https://www.skillsdirectory.com/skills/0mlkrizzz655335v-new-repo)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: new-repo
description: "创建并推送托管仓库。验证平台后创建 Codex 托管仓库并推送。"
disabled-environments:
  - cloud
---


# Create and Save a Hosted Repository

Use for a user-requested Codex-hosted repository. Follow a different explicitly chosen host. Resolve the current hosting capability before mutating the local repository; use the installed [origin](../origin/SKILL.md) workflow if that is the supported host tool.

## Inspect and prepare

Verify platform support, tool availability, and target account/namespace first. The origin workflow has a native-Windows limitation; do not initialize or commit a project just to discover later that its hosting tool cannot run here. Do not install WSL or change hosts without user direction.

Inspect Git state, current branch, remotes, ignored files, and candidate changes. An existing remote proves configuration, not a successful backup. If it is the intended destination, compare local and remote state and complete the requested save/push within existing authorization. Do not create a duplicate remote repository or replace existing remotes merely because this flow was selected.

Before staging, review the named files and relevant diffs. Exclude credentials, tokens, local auth files, and unrelated/dependency output. Preserve user changes. Initialize Git only if needed and use the project's current branch convention, with `main` as the new-repository default when no convention exists.

## Create and push

Choose a concise repository name from the project context unless the user supplied one. For the supported origin CLI, `origin repo create <name>` returns the namespace and clone URL; use those returned values, add the remote only when none is configured for that destination, and push the intended branch. If a name collision is clear, choose a close variant and retry once. Follow the origin recovery guidance for access or namespace failures.

If a required publishing approval is not already present, finish the local content, intended remote/name, and reviewable diff before asking. Do not repeat authorization already supplied by the user.

## Verify and report

Verify the remote branch/commit after pushing. Report the actual repository URL returned by the service and verified visibility/access scope. Distinguish local commit, successful upload, and access settings; do not promise public visibility or that a link alone grants access. Keep existing repositories and remotes intact unless changing them was explicitly requested.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.