plugins/github-copilot-modernization/skills/setting-up-constitution/SKILL.md
Creates or updates the project constitution that defines migration principles, constraints, and conventions. Triggers: "set up constitution", "define migration principles", "create project rules", "establish conventions", "establish migration constitution". NOT for: implementation, implementation planning, task generation.
npx skillsauth add microsoft/github-copilot-modernization setting-up-constitutionInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You MUST consider the user input before proceeding (if not empty).
You are creating or updating the project constitution to your task's artifact path (the Artifact path: from task metadata). Write constitution.md there. Your job is to (a) collect/derive concrete values, (b) fill the template precisely, and (c) propagate any amendments across dependent artifacts.
Follow this execution flow:
Load the existing constitution template at skills/setting-up-constitution/templates/constitution-template.md. Identify every placeholder token of the form [ALL_CAPS_IDENTIFIER].
IMPORTANT: The user might require less or more principles than the ones used in the template. If a number is specified, respect that - follow the general template. You will update the doc accordingly.
Collect/derive values for placeholders:
context.md or similar for any runtime guidance that may inform principle definitions.RATIFICATION_DATE is the original adoption date (if unknown ask or mark TODO), LAST_AMENDED_DATE is today if changes are made, otherwise keep previous.CONSTITUTION_VERSION must increment according to semantic versioning rules:
Draft the updated constitution content:
Consistency propagation checklist (convert prior checklist into active validations):
skills/creating-implementation-plan/templates/plan-template.md and ensure any "Constitution Check" or rules align with updated principles.skills/feature-inventory/templates/spec-template.md for scope/requirements alignment—update if constitution adds/removes mandatory sections or constraints.skills/breaking-down-tasks/templates/tasks-template.md and ensure task categorization reflects new or removed principle-driven task types (e.g., observability, versioning, testing discipline).skills/*/SKILL.md to verify no outdated references remain when generic guidance is required.README.md, docs/quickstart.md, or agent-specific guidance files if present). Update references to principles changed.Produce a Sync Impact Report (prepend as an HTML comment at top of the constitution file after update):
Validation before final output:
Write the completed constitution to your artifact path (overwrite).
Output a final summary to the user with:
docs: amend constitution to vX.Y.Z (principle additions + governance update)).TODO(<FIELD_NAME>): explanation and include in the Sync Impact Report under deferred items.documentation
Reference guide for creating a new Spring Boot project during rewrite migration.
testing
Generate and run post-migration tests from the frozen baseline specification.
devops
How team members request infrastructure connection info and handle secrets in team mode
testing
Create a test baseline for the project to be modernized. The baseline will be used for later verification of modernization tasks.