跳到正文
cccskills
免费在 GitHub 公开

setup-fresh-project

Use this when setting up a fresh new project.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md3.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Fresh Project Setup Guide

Use this skill when you are starting to write code in a fresh project.

Setup Steps

  1. Check if already initialized with git -> not yet? run git init.
  2. Create a .gitignore suitable for tech stack of choices (e.g. __pycache__ for Python, node_modules for Node).
  3. Create style and formatting configurations (e.g. .stylua.toml for Lua, pyproject.toml + Ruff for Python). Default to 4 spaces for tab.
  4. Make sure basic tools required are available in system (e.g. stylua, npm, uv). If not, explicitly ask the user to install.
  5. Set up LSP configurations for OpenCode.

Language Specific

Ask user for tech stack choices. Offer default choices:

Python

Prefer uv (with venv) and ruff.

Pyright LSP

If you are using venv, to prevent LSP errors about 'package not found', create pyrightconfig.json with content:

{
    "venvPath": ".",
    "venv": ".venv"
}

Typescript

Prefer biome and npm (or bun).

Lua

Prefer stylua.

NeoVim Lua Projects

If the Lua project is used as a NeoVim configuration or plugin:

Create a .luarc.json with content:

{
    "runtime.version": "LuaJIT",
    "runtime.path": [
        "lua/?.lua",
        "lua/?/init.lua"
    ],
    "diagnostics.globals": ["vim"],
    "workspace.checkThirdParty": false,
    "workspace.library": [
        "$VIMRUNTIME"
    ]
}

C/C++

Prefer clang, cmake and clang-format.

Clangd LSP

Make sure to use cmake -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON when build (or add set(CMAKE_EXPORT_COMPILE_COMMANDS ON) to CMakeLists.txt). This will create build/compile_commands.json, for clangd to not reporting false positive errors about include header missing.

Folder Structure

Follow industry best pratice of project folder structure most suitable the tech stack.

e.g.:

  • src/, tests/, dist/ for Python & PyTest project.
  • src/, include/, build/ for C++ & CMake project.
  • lua/ for NeoVim Lua plugin project.

A .gitignore and README.md is always required for all projects.

Documentation

Main documentation resides in README.md. With a simple and clear introduction on how to use this project, including but not limited to the following perspectives:

  • What is this?
  • Project structure?
  • How to build?
  • How to test?
  • How to install or deploy?
  • ...

README.md must be presented in a clear, structured markdown format. No placeholders.

README.md focus on big-picture. Optionally create .md under docs/ for more detailed documentation and refer them in README.md.

If this is to be a public project (potentially upload to github), not for personal use:

  • Make sure no hard-coded user path (e.g. /home/bate/project) in README.md and other documents.
  • Make sure no invalid fake link used in README.md and other documents (e.g. [Screenshot](screenshot.png) but actually no such file).
  • Make sure no hard-coded user credentials (e.g. API keys, tokens, or password) in any files tracked by git.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Browser automation CLI for AI agents. Use when needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. TRIGGER when user requests to "open a website", "fill out a form", "click a button", "take a screenshot", "debug this in browser", "scrape data from a page", "test this web app", "login to a site", "frontend UI/UX aesthetics", "automate browser actions", or any task requiring programmatic web interaction.

中文简介正在准备中。当前显示原文说明。

archibate/dotfiles-opencode1082026年4月29日 更新

Review common AI slops of defensive programming patterns, avoid silent errors. TRIGGER when reviewing code for defensive anti-patterns, writing fail-fast code, or auditing error handling quality.

中文简介正在准备中。当前显示原文说明。

archibate/dotfiles-opencode1082026年4月29日 更新

ast-grep

免费

Guide for writing ast-grep rules to perform structural code search and analysis. This skill should be used when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search, or when a simple grep/glob search is insufficient for structural code pattern matching.

中文简介正在准备中。当前显示原文说明。

archibate/dotfiles-opencode1082026年4月29日 更新

Best practices for AI-driven English-to-Chinese translation. This skill should be used when the user asks to "translate to Chinese", "update the Chinese translation", "improve Chinese translation", "fix translation quality", "review Chinese translation", or when translating any English text into Chinese. Also applies when polishing an existing Chinese translation of English content.

中文简介正在准备中。当前显示原文说明。

archibate/dotfiles-opencode1082026年4月29日 更新

This skill should be used when the user asks to "use bilibili API", "download bilibili video", "get bilibili user info", "list bilibili favorites", "send bilibili danmaku", "upload video to bilibili", "monitor bilibili live room", "search bilibili", "get bilibili comments", or needs guidance on the bilibili_api Python library usage, authentication, API endpoints, or workflow patterns.

中文简介正在准备中。当前显示原文说明。

archibate/dotfiles-opencode1082026年4月29日 更新

This skill should be used when sending images, files, or notifications back to the user via messaging platforms (Discord, Feishu, Telegram, etc.) through cc-connect. TRIGGER when agent generates a plot/chart/screenshot and wants to show the user; agent creates a report/PDF/file the user should receive; agent needs to proactively notify the user (e.g. task completed, alert, reminder); user asks to "send image", "show me the chart", "notify me", "send the file", "send to Telegram", "show plot in Discord".

中文简介正在准备中。当前显示原文说明。

archibate/dotfiles-opencode1082026年4月29日 更新

查看 archibate 的全部技能

报告此技能的问题