new-feature-setup

Provision branches, worktrees, Postgres databases, and env files for new features.

1.8k|375|Updated Jan 15, 2025
One-click install
npx skills add https://github.com/trycompai/comp --skill new-feature-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-feature-setup
Source: https://github.com/trycompai/comp/tree/main/.agents/skills/new-feature-setup
Command: npx skills add https://github.com/trycompai/comp --skill new-feature-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill standardizes the setup for starting a new feature, ensuring branch creation, worktree setup, environment replication, database provisioning, and dev-server readiness so engineers can begin coding immediately without infra friction.

Core Features & Use Cases

  • Establishes a new feature branch from origin/main and creates a dedicated worktree.
  • Automatically configures a per-worktree Postgres database and environment files to isolate development.
  • Orchestrates dependency installation, migrations, and client generation via a single, repeatable flow.

Quick Start

Create a new feature worktree from origin/main and let the hook configure the environment and infra automatically.

Frequently Asked Questions about new-feature-setup

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

FAQPage Schema
How do I automate feature branch creation and worktree setup for new development tasks?

Automating feature branch creation and worktree setup provisions isolated dev environments by establishing a branch from origin/main and creating a dedicated worktree. This standardizes the feature-start process so engineers can begin coding immediately without infra friction.

What is the best way to provision a per-worktree database when starting a new feature?

Provisioning a per-worktree database is handled automatically during feature-start setup by configuring a dedicated Postgres database and linking environment files. This isolates development environments so new features operate independently without database conflicts.

Do I need a working main clone and post-checkout hook to automate dev environment setup?

Yes, automating dev environment setup requires a working main clone, origin/main access, and a post-checkout hook. These prerequisites coordinate branch creation, database provisioning, and dependency installation scripts to configure the infrastructure automatically.

How does a standardized feature-start workflow handle dependency installation and migrations?

A standardized feature-start workflow orchestrates dependency installation, database migrations, and client generation via a single repeatable flow. It coordinates these steps automatically after branch creation and worktree setup to ensure dev-server readiness.

Can I use automated worktree setup to isolate bugfix environments from my main development database?

Yes, automated worktree setup isolates bugfix environments by creating a dedicated worktree and provisioning a per-worktree Postgres database. This ensures bugfix work operates independently with replicated environment files and isolated infrastructure.