autoctx-init
Installation
SKILL.md
Auto Context Generation Initialization
This skill guides the user through scaffolding a new environment for the DB Data Agent auto context generation. It handles creating tracking files, output directories, and configuring database connections.
Initialization Workflow
Follow these steps when the user asks to initialize the environment:
- Confirm Working Directory: Explicitly state the current working directory to the user. Explain that the initialization will create an
autoctx/folder in this directory to holdtools.yaml,state.md, andexperiments/. Ask them to confirm if this is the correct location before proceeding. - Check Existing Infrastructure:
- Check if the
autoctx/directory exists. - If it exists, verify if it contains valid
tools.yamlandstate.mdfiles. If it appears to be an unrelated folder or corrupted, STOP and ask the user how to proceed (e.g., use a different name or overwrite). - If it is a valid Autoctx folder and contains all items, inform the user it's already initialized. Otherwise, proceed to create missing items inside
autoctx/.
- Check if the
- Setup Toolbox Configuration: If
tools.yamlis missing insideautoctx/, follow the primary "1. Create a New tools.yaml" workflow documented below in the Toolbox Config Helper section. - Create State Tracker: If
state.mdis missing insideautoctx/, create it with header “context authoring experiment state tracking”. - Initialize Experiments Directory: If
experiments/is missing insideautoctx/, create an emptyexperiments/directory insideautoctx/.