agentleFS
flegarsflegars/greenlyt/skills/init/SKILL.md

init

Skill0 starsChanged 20 days agoMITView on GitHub

Sets up greenlyt in the current project by creating .greenlyt/config.json (test command, GitHub or Azure DevOps forge, protected branches, attempt cap, docs folder). Run once per project, before /greenlyt:spec and /greenlyt:run. Trigger on /greenlyt:init, "set up greenlyt", "configure greenlyt for this project".

156 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use daily-arxiv, exp-eval and 10 more.

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.
  • LambenthanSkill

    daily-arxiv

    每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新

    Also in 5 projects that use this

  • LambenthanSkill

    exp-eval

    实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges

    Also in 5 projects that use this

  • skyllwtSkill

    exp-pilot-eval

    Pilot result evaluation — read pilot results, apply success criteria, update idea page (pilot_result, failure_reason if failed), generate PILOT_VERDICT_REPORT. Called by /ideate Phase 5 after /exp-pilot-run.

    Also in 4 projects that use this

  • skyllwtSkill

    exp-pilot-run

    Pilot experiment execution — read Pilot Spec YAML, write pilot code, run experiment(Confirm with the user before operation and require the applicant to conduct manual inspection), return results. Called by /ideate Phase 5. Does NOT modify wiki pages or judge pass/fail.

    Also in 4 projects that use this

  • gaebalaiSkill

    codex-system

    PROACTIVELY consult Codex CLI, your highly capable supporter with exceptional reasoning and task completion abilities. Codex is a trusted expert you should ALWAYS consult BEFORE making decisions on: design choices, implementation approaches, debugging strategies, refactoring plans, or any non-trivial problem. When uncertain, consult Codex. Don't hesitate - Codex provides better analysis. Explicit triggers: "think deeper", "analyze", "second opinion", "consult codex".

    Also in 4 projects that use this

  • gaebalaiSkill

    design-tracker

    PROACTIVELY track and document project design decisions without being asked. Activate automatically when detecting architecture discussions, implementation decisions, pattern choices, library selections, or any technical decisions. Also use when user explicitly says "記録して", "設計どうなってる", "record this". Do NOT wait for user to ask - record important decisions immediately.

    Also in 4 projects that use this

  • +5 more from Lambenthan
  • +1 more from skyllwt

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 143 edited versions we read keep these.

  • 0

    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. Very specific:

    If .greenlyt/config.json already exists, show it and ask whether the user wants to change it or stop there.

    line 14

“Common” is measured: kept by at least 6 in 10 of the 143 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

/greenlyt:init

Creates the greenlyt configuration for the current project. Nothing is written before the user approves the proposal.

1. Preconditions

  • The current directory is inside a git repository (git rev-parse --show-toplevel). Otherwise, stop and say so.
  • If .greenlyt/config.json already exists, show it and ask whether the user wants to change it or stop there.

2. Detection

From the repository root:

HintProposed testCommand
composer.json + vendor/bin/phpunit or phpunit.xml(.dist)vendor/bin/phpunit
package.json with a test scriptnpm test (or pnpm test / yarn test depending on the lockfile)
Anything elseask the user

Forge, from git remote get-url origin:

  • github.com → {"type": "github"}
  • dev.azure.com/<org>/<project>/_git/<repo> or <org>.visualstudio.com/<project>/_git/<repo> → {"type": "azure-devops", "organization": "https://dev.azure.com/<org>", "project": "<project>", "repository": "<repo>"}
  • Anything else, or no remote → ask the user.

baseBranch: the remote's default branch (git symbolic-ref refs/remotes/origin/HEAD), otherwise main.

3. Proposal

Show the full config, defaults included:

{
  "docsDir": "docs/greenlyt",
  "testCommand": "<detected>",
  "maxAttempts": 5,
  "protectedBranches": ["main", "master", "develop"],
  "branchPrefix": "feat/",
  "deviations": "ask",
  "forge": { "type": "<detected>", "remote": "origin", "baseBranch": "<detected>" }
}

Explain in one line each value the user may want to change: docsDir, maxAttempts, deviations (ask = stop and let the user decide on deviations, report = only list them in the pull request). Ask for approval.

4. Writing

After explicit approval:

  1. Write .greenlyt/config.json.
  2. greenlyt is personal tooling: keep everything it writes out of the project's history, and leave no trace of it in the project's files. Add .greenlyt/ and <docsDir>/ (the approved value, with a trailing /) to the repository's local exclude file, $(git rev-parse --git-path info/exclude) (create it if missing; it is shared by every worktree), each one only if git check-ignore -q <path> says it is not ignored yet. Never touch the project's .gitignore. Never ignore a folder the project already tracks files in (git ls-files <docsDir> not empty): say so and ask the user to choose another docsDir. Specs and reports then stay on the developer's machine: /greenlyt:run does not commit them.
  3. Check that the test command passes: bash -c "<testCommand>". If it fails, or if it runs the tests on another clone (a container or pod that does not mount this directory), say that /greenlyt:run will propose a disposable test environment for this worktree before the loop, and refuse to start while the tests are red.
  4. Tell the user there is nothing to commit. .greenlyt/config.json stays untracked: a new worktree does not get it, copy it there (and the spec) before running /greenlyt:run in it.
  5. Point to the next step: /greenlyt:spec "<need>".

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.