ワンクリックで
cli-new-app
建立新的 Swift CLI 專案骨架(Package.swift + ArgumentParser + Version.swift + .gitignore)
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
建立新的 Swift CLI 專案骨架(Package.swift + ArgumentParser + Version.swift + .gitignore)
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Turn a journal / reference article PDF into a faithful, compile-verified LaTeX "article record" — metadata frontmatter + every theorem, definition and numbered equation (original numbers preserved) + references + flagged editorial notes — saved next to the PDF as year_author_title.tex. Reach for this whenever the user wants to transcribe, OCR, extract, "make a record of", or pull the theorems / equations out of a paper or PDF into LaTeX, or adds a reference PDF and wants it turned into a structured .tex — even when they literally say "OCR it": this skill checks for a text layer first and deliberately avoids OCR on born-digital PDFs, because re-recognizing rendered math is less accurate than reading the embedded text. Especially valuable for math-heavy papers where equation fidelity matters.
發布或更新 MCP Server 到官方 MCP Registry 及第三方平台(Glama、awesome-mcp-servers)
Unblock Apple notarization / signed releases when blocked by an updated or expired Apple Developer Program License Agreement (the notarytool / Transporter HTTP 403 "A required agreement is missing or has expired"). Accepts the pending agreement on developer.apple.com via Safari + AppleScript, then re-verifies and resumes the release. Use when: `xcrun notarytool` / `make release-signed` fails with 403 "required agreement", or user says "notarization blocked", "公證被擋", "Apple 協議過期", "accept apple agreement", "Program License Agreement", "notary 403", "release 卡在 Apple 協議". Do NOT use for 401 "Invalid credentials" (that is an app-specific-password / key problem — re-run `xcrun notarytool store-credentials`, a user-only action).
macOS native browser automation via Safari + AppleScript. Use when the user needs to automate websites that require login (Plaud, Elementor, banking, social media) — Safari preserves localStorage and cookies permanently. Also use when agent-browser fails due to session/auth issues, or when the user explicitly asks to use Safari. Triggers on: "login to site", "automate with Safari", "use Safari", "session expired with agent-browser", "Plaud upload", or any website automation where persistent auth is needed.
更新 Plugin 到最新版本(marketplace.json 同步 + marketplace update + plugin update + 安裝檢查)。當修改了任何 plugin 原始碼後需要同步、或用戶提到「更新 plugin」、「同步 plugin」、「plugin 沒生效」、「reload plugins」時使用。
LaTeX source 編譯前的 static check — punct_check(半形/全形標點)+ fonts_check(字型缺字,需既有 .log)+ source-level pattern audit。當用戶說「precompile check」「編譯前檢查」「跑 make check」「source audit」「掃半形標點」「掃缺字」時使用。對應暑期班 typesetting-checklist 的
| name | cli-new-app |
| description | 建立新的 Swift CLI 專案骨架(Package.swift + ArgumentParser + Version.swift + .gitignore) |
| argument-hint | <project-name> |
| allowed-tools | Read, Write, Edit, Bash, Grep, Glob, AskUserQuestion |
Scaffold 一個新的 Swift CLI 專案,包含完整的開發結構。
$1 = 專案名稱(kebab-case,如 my-tool)如果沒有提供專案名稱,用 AskUserQuestion 詢問:
PsychQuant/{project-name})mkdir -p {project-name}
cd {project-name}
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "{ProjectName}",
platforms: [
.macOS(.v14),
],
products: [
.executable(name: "{binary-name}", targets: ["{target-name}"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.5.0"),
],
targets: [
.executableTarget(
name: "{target-name}",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
]
),
]
)
Sources/{target-name}/{ProjectName}.swift:
import ArgumentParser
@main
struct {ProjectName}: AsyncParsableCommand {
static let configuration = CommandConfiguration(
commandName: "{binary-name}",
abstract: "{description}",
subcommands: [Version.self]
)
}
Sources/{target-name}/Version.swift:
import ArgumentParser
struct Version: ParsableCommand {
static let configuration = CommandConfiguration(
abstract: "Print version"
)
static let current = "0.1.0"
func run() {
print("{binary-name} \(Version.current)")
}
}
.build/
.release/
.swiftpm/
*.xcodeproj/
基本的 README,包含安裝指令和使用說明。
git init
git add -A
git commit -m "init: {binary-name} — {description}"
用 AskUserQuestion 詢問是否建立 GitHub repo:
gh repo create {owner}/{project-name} --public --source=. --push
swift build
.build/debug/{binary-name} version
專案 {project-name} 已建立!
結構:
{project-name}/
├── Package.swift
├── Sources/{target-name}/
│ ├── {ProjectName}.swift
│ └── Version.swift
├── .gitignore
└── README.md
下一步:
1. 加入你的 subcommands
2. `swift build` 測試
3. (macOS 26 + 公開分發)裝簽章 pipeline:`/mcp-tools:mcp-sign-pipeline`
- macOS 26 對 ad-hoc binary 收緊;若要對外分發給其他 macOS 26 使用者,必須走 Developer ID + hardened runtime + notarization
- 純自用 / dev-only CLI 不需要(ad-hoc 仍能跑,只會 Gatekeeper warning)
- 此 skill 在 mcp-tools plugin 內但對 Swift CLI 同樣適用
4. `/cli-tools:cli-deploy` 發布
- 若已裝 sign-pipeline,可跑 `make release-signed` 產出 signed binary