agentleFS
yimwooyimwoo/hotl-plugin/skills/setup-project/SKILL.md

setup-project

Skill27 starsChanged 9 months agoMITView on GitHub

Use to generate HOTL adapter files for the current project — creates AGENTS.md, .clinerules, cursor rules, or copilot instructions depending on tools the team uses.

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use implement and research.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Hugging FaceSkill

    implement

    Make tests pass. Invoke after /write-tests produces failing tests.

    Also in 3 projects that use this

  • DockerSkill

    research

    Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask: "Which code assistants does your team use?" (select all that apply)

    line 16
  2. Very specific:

    If you are working in the hotl-plugin repo itself, use scripts/hotl-install-codex-agents.sh

    line 50
  3. Distinctive:

    Commit all generated files:

    line 86

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Setup Project for HOTL

Overview

Generate the right config files so every code assistant on your team follows HOTL principles.

Announce: "Running HOTL project setup. Let me check what tools your team uses."

Process

  1. Ask: "Which code assistants does your team use?" (select all that apply)
    • Claude Code
    • Codex (OpenAI)
    • Cline (VS Code extension)
    • Cursor
    • GitHub Copilot
  2. Ask: "Will this project run multi-phase initiatives?" Default: no. Only answer yes for multi-phase work like major migrations, v1/v2 rewrites, platform rebuilds, or any effort that will span multiple phases with separate phase design docs and workflows. For a single feature, bug fix, or refactor, answer no — the standard HOTL flow handles those just fine.

    If yes, ask the follow-up: "What's the initiative slug? (kebab-case, e.g. ai-assurance, v2-migration)". Validate the answer matches [a-z0-9][a-z0-9-]*.

    If no (or if the user declines to opt in), skip step 5 entirely and proceed with tool-adapter generation only.

  3. For each selected tool, generate the appropriate file:
ToolFile GeneratedLocation
Claude CodeCLAUDE.mdProject root
CodexAGENTS.md; optional .codex/agents/*.tomlProject root
Cline.clinerulesProject root
Cursor.cursor/rules/hotl.mdProject root
GitHub Copilot.github/copilot-instructions.mdProject root
  1. Each generated file contains:
    • HOTL operating principles (intent/verification/governance contracts)
    • Brainstorming guidance that produces design docs in docs/designs/
    • Link to docs/plans/YYYY-MM-DD-<slug>-workflow.md format
    • Risk level guidelines
    • What always requires human review
  2. If Codex was selected, ask whether to install HOTL Codex custom agent templates. Default: yes. These templates make the bundled reviewer, architect, researcher, QA, dev, and PM roles available to the target project as Codex project-scoped custom agents.

    Resolve hotl-install-codex-agents.sh using the same six-location install-path order as the initiative scaffolder below:

    1. If you are working in the hotl-plugin repo itself, use scripts/hotl-install-codex-agents.sh
    2. Codex native-skills install: ~/.codex/hotl/scripts/hotl-install-codex-agents.sh
    3. Codex plugin install: ~/.codex/plugins/hotl-source/scripts/hotl-install-codex-agents.sh
    4. Codex plugin cache fallback: ~/.codex/plugins/cache/codex-plugins/hotl/*/scripts/hotl-install-codex-agents.sh
    5. Cline install fallback: ~/.cline/hotl/scripts/hotl-install-codex-agents.sh
    6. Claude Code plugin fallback: ~/.claude/plugins/hotl/scripts/hotl-install-codex-agents.sh

    Invoke the installer from the project root:

    bash <resolved-hotl-install-codex-agents.sh>

    The installer creates .codex/agents/ and copies the tracked HOTL templates from adapters/codex-agents/ into it. Existing agent files are preserved by default and emitted as SKIP: lines. Only use --force when the user explicitly approves overwriting existing project agent files.

  3. If the user opted in to initiative support in step 2, invoke the scaffolder to create .hotl/config.yml, the six docs/<tier>/ directories, and the four initiative-tier templates under docs/prompts/. The scaffolder should configure docs/designs/ as the canonical design-doc home and docs/plans/ as the canonical workflow home.

    Resolve hotl-init-initiative.sh using the same six-location order as document-lint.sh and hotl-config.sh (see skills/document-review/SKILL.md):

    1. If you are working in the hotl-plugin repo itself, use scripts/hotl-init-initiative.sh
    2. Codex native-skills install: ~/.codex/hotl/scripts/hotl-init-initiative.sh
    3. Codex plugin install: ~/.codex/plugins/hotl-source/scripts/hotl-init-initiative.sh
    4. Codex plugin cache fallback: ~/.codex/plugins/cache/codex-plugins/hotl/*/scripts/hotl-init-initiative.sh
    5. Cline install fallback: ~/.cline/hotl/scripts/hotl-init-initiative.sh
    6. Claude Code plugin fallback: ~/.claude/plugins/hotl/scripts/hotl-init-initiative.sh

    Invoke the scaffolder with the slug collected in step 2:

    bash <resolved-hotl-init-initiative.sh> --name <slug>

    The scaffolder refuses cleanly when .hotl/config.yml already exists — that is the intended behavior and should not be worked around. If any of the four target outputs under docs/prompts/ already exists, it is preserved byte-for-byte and a SKIP: line is emitted.

    Only invoke the scaffolder when the user answered yes in step 2. If the user answered no (the default), skip this step entirely.

  4. Commit all generated files:
git add AGENTS.md .clinerules .cursor/ .github/ CLAUDE.md
# If Codex custom agents were installed, also add:
#   .codex/agents/
# If initiative support was scaffolded in step 6, also add:
#   .hotl/config.yml docs/
git commit -m "chore: add HOTL adapter files for [tool list]"

AGENTS.md Template Content

# AGENTS.md — HOTL Operating Model

This project follows the Human-on-the-Loop (HOTL) development model.

## How to Work

1. Before feature work: brainstorm with intent/verification/governance contracts
2. Brainstorm into a design doc in `docs/designs/`, then create a dated workflow file at `docs/plans/YYYY-MM-DD-<slug>-workflow.md`
3. Execute steps autonomously within guardrails
4. Pause at `gate: human` for high-risk steps

## Risk Levels

- **low/medium + auto_approve: true:** Execute autonomously, auto-approve gates
- **high:** Always pause for human review at gates

## Always Requires Human Review

- Auth/authz changes
- Encryption or key management
- Privacy-critical logic (PII, consent, deletion)
- Billing or financial logic
- Broad access control changes

## Workflow Format

See `docs/plans/YYYY-MM-DD-<slug>-workflow.md` for canonical workflow instances or `workflows/` in the plugin for templates.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.