agentleFS
gh33kgh33k/session-plugin/skills/init/SKILL.md

init

Skill2 starsChanged 10 months agoMITView on GitHub

Initialize session workflow structure with auto-detection. Analyzes existing codebase or guides new project setup. Use for first-time setup in any project.

89 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use migrate, survey 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.
  • genomewalkerSkill

    migrate

    Import soul data from SQLite or shared chitta files

    Also in 8 projects that use this

  • SNL-UCSBSkill

    survey

    Literature survey assistant with four modes: /survey intent (capture student goals, expertise, and success criteria), /survey triage (landscape mapping via NotebookLM), /survey deepen (structured reading with craft and visualization extraction), /survey synthesize (cross-paper analysis for related work, area exams, gap identification). Also: /survey expand (corpus growth proposals). Use when students mention reading papers, literature review, related work, area exam prep, paper corpus, or any systematic reading task.

    Also in 3 projects that use this

  • pvnarpSkill

    bug

    Investigates and resolves bugs using structured diagnosis. Categorizes by system, traces root cause, proposes minimal fix, and suggests prevention. Use when debugging issues or investigating unexpected behavior.

    Also in 3 projects that use this

  • AnthropicSkill

    uninstall

    Uninstall a community skill that was installed via the hub. Confirms before deleting files, refuses to touch first-party plugin skills, and logs every action. Use when the user wants to fully remove a community skill ("uninstall [skill]", "remove this skill") rather than just disable it.

    Also in 3 projects that use this

  • Eipi-TongSkill

    adopt

    Onboard an existing codebase into the starter kit. Use when the user says "adopt this project", "add the kit to my existing repo", or "set up the kit on existing code".

    Also in 3 projects that use this

  • mlz11Skill

    reset

    Completely reset ClaudeNotifier installation, removing all components and permissions

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

    If .project/ exists, ask: Skip / Merge / Replace?

    line 17
  2. Distinctive:

    Create directories and templates (see Create Directories and templates below).

    line 64
  3. Distinctive:

    Use detected info to create populated templates.

    line 134

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

session:init

Initialize session workflow. For existing projects, analyzes codebase and pre-fills templates. For empty projects, asks what you're building and generates starter templates.

Instructions

1. Check Existing Structure

ls -d .project .beads .context 2>/dev/null

If .project/ exists, ask: Skip / Merge / Replace?

2. Detect Project State

ls -A | head -20

If empty or only has .git: → Go to Empty Project Flow If has files: → Go to Existing Project Flow


Empty Project Flow

E1. Ask What They're Building

New project detected. What are you building?

1. Web App (frontend with React/Vue/Next.js)
2. API/Backend (Node/Python/Go/Rust)
3. CLI Tool
4. Library/Package
5. Full-Stack (frontend + backend)
6. Other (describe it)

E2. Ask for Project Name and Description

What should we call this project? (short name)
Brief description? (1-2 sentences)

E3. Generate Starter Templates

Based on selection, create .project/ files with suggested stack:

TypeSuggested Stack
Web AppTypeScript, React/Next.js, Tailwind, Vitest
API/BackendTypeScript/Python, Express/FastAPI, Jest/Pytest
CLI ToolTypeScript/Rust, Commander/Clap
LibraryTypeScript, Vitest, tsup for bundling
Full-StackTypeScript, Next.js or separate frontend/backend

Create directories and templates (see Create Directories and templates below).

E4. Report and Suggest Plan Session

Project initialized: {name}

Created .project/ with starter templates for {type}.
Stack suggestion: {suggested stack}

Next step: /session:start plan

In the plan session, you'll:
- Refine the project scope and architecture
- Define principles and constraints
- Break down into initial tasks
- Set your first focus area

Stop here for empty projects.


Existing Project Flow

3. Analyze Codebase

Stack Detection

FileIndicates
package.jsonNode.js - read for framework/deps
Cargo.tomlRust
pyproject.toml or requirements.txtPython
go.modGo
pom.xml or build.gradleJava
GemfileRuby
composer.jsonPHP

Framework Detection (from package.json)

DependencyFramework
nextNext.js
reactReact
vueVue
expressExpress
fastifyFastify
@angular/coreAngular
svelteSvelte

Convention Detection

FileConvention
tsconfig.jsonTypeScript
.eslintrc*ESLint rules
.prettierrc*Prettier formatting
jest.config.*Jest testing
vitest.config.*Vitest testing
.github/workflows/GitHub Actions CI

4. Create Directories

mkdir -p .project/features .context/{sessions,terminal,mcp}

5. Generate Pre-filled Templates

Use detected info to create populated templates.

.project/overview.md

# Project Overview

## What is this?
[Detected: {framework} project with {structure}]
[TODO: Add 1-2 sentence description]

## Key Structure
{detected directory layout}

## Quick Start
```bash
{detected from package.json scripts.dev or scripts.start, or common patterns}

Current Status

Active development


#### .project/stack.md

```markdown
# Tech Stack

## Core
- Language: {detected language}
- Framework: {detected framework}
- Runtime: {Node version from .nvmrc or engines, Python version, etc.}

## Key Dependencies
{top 5-10 dependencies with brief purpose if detectable}

## Dev Tools
- Linting: {eslint/prettier if detected}
- Testing: {jest/vitest/pytest if detected}
- CI: {GitHub Actions if .github/workflows exists}

.project/conventions.md

# Conventions

## Code Style
{Detected from eslint/prettier config, or "See .eslintrc for rules"}

## TypeScript
{If tsconfig.json: "Strict mode enabled" or key settings}

## Testing
- Location: {tests/ or __tests__ or src/**/*.test.*}
- Framework: {detected test framework}

## Git
{If .github/workflows: "CI runs on PR"}

.project/constitution.md

# Constitution

## Principles
- [TODO: Add non-negotiable principles]

## Non-Goals
- [TODO: What this project will NOT do]

## Constraints
- [TODO: Technical/business constraints]

.project/state.md

# Current State

## Active Focus
[TODO: What are you working on?]

## Recent Decisions
- [TODO: Key decisions made]

## Blockers
- [ ] [TODO: Unresolved issues]

## Next Up
- [TODO: Upcoming work]

---
*Initialized: {date}*

6. Update .gitignore

Append if not present:

# Session workflow
.context/

7. Initialize beads

bd init 2>/dev/null || echo "beads not installed - task tracking disabled"

8. Report Results

Session initialized!

Detected:
  - Language: {language}
  - Framework: {framework}
  - Testing: {test framework}
  - CI: {GitHub Actions / none}

Created .project/ with pre-filled templates.
Created .context/ for session memory.
Initialized .beads/ for task tracking.

Next: Review .project/ files, then /session:start plan

Shared Templates (Both Flows)

Both flows create the same file structure. For empty projects, use suggested values. For existing projects, use detected values.

.project/constitution.md (always needs user input)

# Constitution

## Principles
- [Define in plan session]

## Non-Goals
- [Define in plan session]

## Constraints
- [Define in plan session]

.project/state.md

# Current State

## Active Focus
{For empty: "Project setup and planning"}
{For existing: "[TODO: What are you working on?]"}

## Recent Decisions
- Initialized session workflow

## Blockers
- [ ] None yet

## Next Up
- Complete project planning

---
*Initialized: {date}*

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.