Update project context
Own the authoring procedure for rules, agents, and skills. A direct request, accepted session lesson, repository-onboarding proposal, or review finding enters the same procedure. Updating the layer can create a new artifact.
Resolve and draft
Read
<manifest>and resolve itssources.rules,sources.agents, andsources.skillsdirectories.<content-dir>names the project's content directory;<module>is installed package content. Read theintelligence-authoringrule and<module>/references/conventions.md. Edit project-owned sources, never installed packages or generated output. When working in a package's own repository, use its authoritative source tree.Inspect existing artifacts, including configured package sources, for overlap. Prefer extending an existing owner, merging duplicates, or enforcing a convention mechanically. Resolve the writable directory from the manifest; create a pre-listed missing directory without changing the source list. Add a source entry only when an accepted destination is outside the listed groups, and add it with
intelligence source add <rules|agents|skills> <dir>rather than by editing the manifest: the list is ordered, and its order decides which artifact wins.Establish the evidence and artifact type. A constraint is a rule, a repeatable procedure is a skill, and a persona or expertise boundary is an agent. Verify repository claims in code or executable configuration. An accepted session preference is evidence of the user's intent; an observed workflow supplies its working steps. Preserve that evidence rather than inventing repository precedent.
Reuse the existing domain vocabulary. If none fits, derive it from the project name or component: for example
backend,frontend,devops,core, ortests. Project artifacts do not use the package-reservedintelligence-prefix. Resolve an unclear scope before writing. Read only the relevant artifact reference, for both new content and changes to existing content:- Rule: references/rules.md.
- Agent: references/agents.md.
- Skill: references/skills.md.
Draft the smallest change with its action, source path, evidence, and reason. Supported actions include
CREATE,UPDATE,REMOVE(DELETEin a review),ARCHIVE,MERGE,MOVE,SCOPE,REFERENCE, andREWRITE. Preserve an upstream proposal's behavior checklist, approval scope, and verification requirements. Present changes to meaning, ownership, scope, or load timing that the user has not already authorized. Accepted proposals do not need a second approval round.
Apply and verify
Apply the authorized changes and update every affected invocation, link, and agent binding. Archive to the project content directory's
_archive/when requested; remove only the accepted sources. For a move or merge, retain each behavior once in its new owner. Preserve unapproved passages byte-for-byte.Check the relevant artifact reference, frontmatter, configured source coverage, and all changed cross-references. Confirm the intended triggers, boundaries, ordering, failure handling, and verification survived. Run tests for bundled helpers or changed executable behavior using the project's verification gate.
Run
/intelligence-synconce after the complete batch, requireIS_STATUS=ok, then runintelligence status --check. Verify that each enabled target received the intended artifacts and resources and that removed names are absent. When called by onboarding, defer this batch's sync to its final migration check so the accepted manifest header and content are verified together.Report the created, updated, removed, or archived artifacts and their checks. Return control to the originating workflow for its additional semantic, compaction, migration, or packaging verification; those checks remain required.