setup

Configures ESLint and TypeScript strictness for a repository during initial setup.

Updated Apr 18, 2026
One-click install
npx skills add https://github.com/chughtapan/safer-by-default --skill setup-chughtapan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup
Source: https://github.com/chughtapan/safer-by-default/tree/main/skills/setup
Command: npx skills add https://github.com/chughtapan/safer-by-default --skill setup-chughtapan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

One-time bootstrap that prepares a TypeScript repo for safer-by-default coding: detects tooling state, configures ESLint and TypeScript strict posture, and provisions guard rules to prevent common errors.

Core Features & Use Cases

  • Detects the repository state: package manager, existing ESLint config, and tsconfig strict posture; installs eslint-plugin-agent-code-guard and companion rules; writes eslint.config.js in three blocks; flips tsconfig strict flags; probes that the lint actually fires on a known anti-pattern; reports the lint baseline and guides the user on how to handle it.
  • Provides idempotent, user-invoked setup that does not auto-route or commit changes.
  • Works as a single, repeatable bootstrap step for TypeScript repos adopting safer-by-default practices.

Quick Start

Run /safer:setup in the project root to bootstrap the safer-by-default linting and bootstrap workflow.

Frequently Asked Questions about setup

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

FAQPage Schema
How do I set up safer-by-default TypeScript linting in a new repository?

You bootstrap safer-by-default TypeScript linting by running a single setup command that detects existing tooling, installs guard plugins, and writes ESLint and tsconfig configuration artifacts.

What does TypeScript strict mode bootstrap do to my existing ESLint config?

The bootstrap detects your existing ESLint config and writes eslint.config.js in three blocks. It provisions guard rules and baseline linting without auto-routing or committing changes, ensuring a non-destructive integration.

Can I run the ESLint baseline setup multiple times on the same TypeScript project?

Yes, the ESLint baseline setup runs idempotent operations. You can safely invoke the bootstrap workflow repeatedly to configure TypeScript strictness and guard rules without duplicating configuration artifacts.

How do I verify that my TypeScript strict linting rules are working after setup?

The setup probes that the lint actually fires on a known anti-pattern. It reports the lint baseline after configuring ESLint and tsconfig strict flags, guiding you on how to handle any remaining baseline errors.

Does the safer-by-default bootstrap work with my existing package manager and tsconfig?

Yes, the setup detects the repository state including your package manager and tsconfig strict posture. It applies idempotent operations to provision guard rules and prompts for integration decisions without committing changes.

What configuration artifacts are created when bootstrapping TypeScript strict linting?

Bootstrapping TypeScript strict linting outputs artifacts like eslint.config.js, tsconfig edits, and a baseline file. It installs the guard plugin and writes configuration in three blocks to enforce safer coding.