AgentSkillsCN

init_harness

通过运行/init命令,在仓库中初始化AI工程框架,创建AGENTS.md文件,并搭建thoughts/目录结构,以进行上下文工程。适用于用户运行/init_harness,或在新仓库中请求搭建工程框架时使用。

SKILL.md
--- frontmatter
name: init_harness
description: Initialize the AI Engineering Harness in a repository by creating the `thoughts/` directory structure for Gemini CLI.
disable-model-invocation: true
allowed-tools: read_file, write_file, run_shell_command

Initialize Harness

Initialize the AI Engineering Harness in this repository.

What This Command Does

  1. Creates the thoughts/ directory structure for context engineering.
  2. Adds a ticket template for consistent ticket creation.
  3. Provides guidance on next steps.

Instructions

Follow these steps to initialize the harness:

  1. Check the current state of the repository

    • Verify if thoughts/ directory exists
  2. Create the thoughts/ directory structure:

    bash
    mkdir -p thoughts/shared/{tickets,plans,research}
    mkdir -p thoughts/global
    
  3. Add the ticket template to thoughts/shared/tickets/ticket-template.md

  4. Optionally create a personal thoughts directory:

    • Check if personal directory exists
    • Check if all directories within personal exist (tickets, plans, research)
    bash
    mkdir -p thoughts/$(whoami)/{tickets,plans,research}
    
  5. Present next steps to the user

Quick Reference

After running this command, the repository will have:

code
thoughts/
├── shared/
│   ├── tickets/                    # Feature requests, bugs, tasks
│   │   └── ticket-template.md      # Template for new tickets
│   ├── plans/                      # Implementation plans
│   └── research/                   # Research documents
└── global/                         # Cross-repository concerns

Workflow After Initialization

code
Ticket → /create_plan → /implement_plan → /validate_plan → /commit