repo-init

Scaffold new AISEF hub or implementation repositories with templates.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/mattfuster/aisef-setup --skill repo-init-mattfuster
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: repo-init
Source: https://github.com/mattfuster/aisef-setup/tree/main/.claude/skills/repo-init
Command: npx skills add https://github.com/mattfuster/aisef-setup --skill repo-init-mattfuster

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Initialize a new repository with AISEF structure — scaffold a hub or implementation repo with the correct profile, configuration files, and hub connection. Use when starting a new AISEF project or when a user asks to set up a repo.

Core Features & Use Cases

  • Detects current repo state (presence of .claude, CLAUDE.md, CONTEXT.md, CHANGELOG.md, src/, or hub-like structure) and reports findings.
  • Confirms before writing any files and avoids overwriting existing work.
  • Validates hub path for implementation repos by ensuring the hub directory exists and contains .claude/framework.md.
  • Generates templates for CLAUDE.md, .claude/product.md, and hub scaffolding or implementation repo structure from references/.
  • Presents all proposed changes for user approval and then creates files after confirmation.

Quick Start

Ask me to initialize this repo for AISEF to scaffold the proper hub or implementation structure.

Frequently Asked Questions about repo-init

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold an AISEF repository with safe defaults?

To scaffold an AISEF repository, the tool applies hub or implementation templates and ensures correct configuration without overwriting existing files. It validates the current state, prompts for a profile, and generates the required folder structure after user confirmation.

What is the difference between a hub repo and an implementation repo in AISEF?

A hub repo establishes the central AISEF framework structure, while an implementation repo connects to that hub. The scaffolder validates the hub path for implementation repos by ensuring the hub directory exists and contains the .claude/framework.md file.

How do I initialize a new AISEF project without losing existing files?

To initialize safely, the scaffolder detects existing files like CLAUDE.md, CONTEXT.md, or src/ directories and reports findings. It omits file generation for existing content and presents all proposed changes for approval before writing anything.

Can I use repo-init to set up an existing repository with AISEF standards?

Yes, you can apply AISEF standards to an existing repository. The tool detects the current repo state, including the presence of .claude or hub-like structures, confirms findings, and generates missing configuration files without overwriting your current work.

What configuration files are generated when scaffolding an AISEF project?

Scaffolding an AISEF project generates templates for CLAUDE.md, .claude/product.md, and the necessary hub or implementation repo structure. These files establish the required standards, folder hierarchy, and hub connections from internal references.

Why does my implementation repo fail to connect to the AISEF hub?

An implementation repo fails to connect when the provided hub path is invalid. The scaffolder validates the hub path by checking that the hub directory exists and specifically contains the .claude/framework.md file before proceeding.