Detailed procedure
Use the input contract in SKILL.md; resolve its required information before dependent actions.
Read .claude/framework/policy.md, STATE.md and existing project documentation. Inspect Git state, actual manifests, versions, instructions and CI without reading secrets. Use python3 .claude/framework/framework.py doctor for framework diagnostics; distinguish these from application checks. Record actual application scope/stack in docs/project/brief.md and config.json. Use config.example.json for the known fields (name, description, schema_version, profiles, stack) and preserve additional user metadata. Do not run the initializer over an existing project. Reconcile existing architecture/principles/ADRs before recommending changes. Use architecture-design only for unresolved material boundaries. Select only relevant available profiles and exact existing build/test commands; do not install tools. Propose scoped config changes and run only inspected authorized project commands. Report missing dependencies, conflicting hooks, native-invocation limits and next action. Preserve project decisions and user files. Outputs: evidence-backed inventory, selected profiles, applicable checks and updated STATE.md.