adevsync
- Repo stars 0
- Author updated Live
- Author repo skills-registry
- Domain
- AI
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 88 / 100 · community maintained
- Author / version / license
- @tomevault-io · no license declared
- Token usage
- Lean
- Setup complexity
- Plug-and-play
- External API key
- Not required
- Operating systems
- macOS · Linux · Windows
- Runtime requirements
- Node.js
- Permissions
-
- Read-only
- Write / modify
- Network behavior
- Local-only
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: adevsync
description: Sync constitution to CLAUDE.md, AGENTS.md, and other agent files declared in manifest.yaml. Run…
category: ai
runtime: Node.js
---
# adevsync output preview
## PART A: Task fit
- Use case: Sync constitution to CLAUDE.md, AGENTS.md, and other agent files declared in manifest.yaml. Run after editing the constitution or when agent files are out of date. Use when the user says 'sync agent files', 'update agent files', 'constitution changed', 'regenerate agent configs', or after any edit to constitution.md. In Codex, invoke with $adev:sync Use when this capability is needed..
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “Provider Detection / Process / Dry-Run Mode” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “Sync constitution to CLAUDE.md, AGENTS.md, and other agent files declared in manifest.yaml. Run after editing the constitution or when agent files are out of date. Use when the user says 'sync agent files', 'update agent files', 'constitution changed', 'regenerate agent configs', or after any edit to constitution.md. In Codex, invoke with $adev:sync Use when this capability is needed.”.
- **02** When the source has headings, the agent prioritizes “Provider Detection / Process / Dry-Run Mode” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, write/modify files; mostly runs locally; usually needs no extra API key.
## Running Rules
- read files, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source mentions slash commands such as `/adev`; use them first when your agent supports command triggers.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, write/modify files.
Start with a small task and check whether the result follows “Provider Detection / Process / Dry-Run Mode”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: adevsync
description: Sync constitution to CLAUDE.md, AGENTS.md, and other agent files declared in manifest.yaml. Run…
category: ai
source: tomevault-io/skills-registry
---
# adevsync
## When to use
- Sync constitution to CLAUDE.md, AGENTS.md, and other agent files declared in manifest.yaml. Run after editing the cons…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “Provider Detection / Process / Dry-Run Mode” and keep inference separate from source facts.
- read files, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "adevsync" {
input -> user goal + target files + boundaries + acceptance criteria
context -> Provider Detection / Process / Dry-Run Mode
rules -> SKILL.md triggers / order / output contract
runtime -> Node.js | read files, write/modify files | mostly runs locally
guardrails -> usually needs no extra API key + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} Sync Constitution to Agent Files
Reads .context-index/constitution.md and generates tool-specific agent files based on manifest.yaml sync targets.
Provider Detection
When syncing, detect which AI coding assistant is running:
- Claude Code:
CLAUDE.md(primary) - OpenCode:
AGENTS.md(primary) - Cursor:
.cursorrules - GitHub Copilot:
.github/copilot-instructions.md
If multiple providers are used, sync all enabled targets from the manifest.
Process
Read source files:
.context-index/constitution.md(required).context-index/manifest.yaml(required, for sync targets).context-index/platform-context.yaml(optional, for tech stack summary)
For each sync target in manifest:
Claude format (
CLAUDE.md)<!-- Synced from .context-index/constitution.md by adev. Do not edit above the User Additions line. --> [Full constitution content] ## Context Index This project uses the Agentic Development Framework (adev). - Constitution: `.context-index/constitution.md` - Manifest: `.context-index/manifest.yaml` - Platform: [summary from platform-context.yaml] - Available skills: /adev:brainstorm, /adev:specify, /adev:review-specs, /adev:plan, /adev:implement, /adev:validate, /adev:debug, /adev:issues, /adev:hygiene ## Task Management (conditional) <!-- BEGIN TASK MANAGEMENT --> [Read `tasks.backend` from manifest.yaml. If configured: - Include the Task Management section from constitution.md. - If tasks.backend is "beads", include br command reference. - If tasks.backend is "file", include markdown table reference. - If constitution has no Task Management section, generate from the default content matching the configured backend. If tasks.backend is NOT configured in the manifest, omit this entire section (no empty block, no placeholder).] <!-- END TASK MANAGEMENT --> ## Learned Lessons (conditional — see step 3) # User Additions <!-- Content below is preserved across syncs. Add Claude-specific instructions here. --> [preserved content from previous CLAUDE.md below this marker]OpenCode / Generic agents format (
AGENTS.md)<!-- Synced from .context-index/constitution.md by adev. --> [Full constitution content] ## Project Context This project uses the Agentic Development Framework (adev). - Constitution: `.context-index/constitution.md` - Manifest: `.context-index/manifest.yaml` - Platform: [summary from platform-context.yaml] - Available skills: /adev:brainstorm, /adev:specify, /adev:review-specs, /adev:plan, /adev:implement, /adev:validate, /adev:debug, /adev:issues, /adev:hygiene ## Task Management (conditional) <!-- BEGIN TASK MANAGEMENT --> [Same logic as Claude format: include if tasks.backend is configured, omit otherwise.] <!-- END TASK MANAGEMENT -->Copilot format (
.github/copilot-instructions.md)Principles and coding standards only. Omit Context Routing (Copilot has limited file navigation).
Cursor format (
.cursorrules)Full constitution content. Convert Context Routing pointers to Cursor-compatible references where applicable.
Inject Learned Lessons (conditional):
Read high-confidence heuristics via inline Node.js using
retrieveHeuristicsandrenderHeuristicfromlib/heuristics.mjs. This step is non-blocking: ifretrieveHeuristicsthrows, log a warning to stderr and proceed without the section.import { retrieveHeuristics } from 'lib/heuristics.mjs'; const heuristics = await retrieveHeuristics(projectRoot, '_global'); const highOnly = heuristics.filter(h => h.confidence === 'high');- If no
high-confidence entries exist, skip the section entirely. If a stale## Learned Lessonsblock is already present in the target file, remove it (replace from the heading to the next##heading or EOF, whichever comes first). - If entries exist, group by scope alphabetically. The
_globalscope sorts last. - Render each entry as:
- <title> (<scope>) — <pattern truncated to 80 chars> - Placement in CLAUDE.md and AGENTS.md: Place the
## Learned Lessonssection heading immediately before the# User Additionsmarker. - Placement in .cursorrules and copilot-instructions.md (
.github/copilot-instructions.md): Append the section at the end of the file. - On re-sync: Detect an existing
## Learned Lessonsheading and remove the old block (from the heading to the next##or EOF), then write the fresh replacement in the correct position.
- If no
Preserve User Additions:
- Look for
# User Additionsmarker in existing target file - If found, preserve everything below the marker
- If marker missing, append the marker with empty section
- If target file does not exist, create it fresh
- Look for
Report: List which files were updated and their line counts.
Dry-Run Mode
/adev:sync --dry-run — Show what would be generated without writing files. Print the diff for each target.
When to Run
- After
/adev:init(automatic) - After editing
.context-index/constitution.md(suggested by sync-trigger hook) - After editing
.context-index/manifest.yaml(manual) - When agent files seem stale (
/adev:hygienewill detect this)
Context Routing referent
The constitution's Context Routing table includes a row Lifecycle state | .context-index/lifecycle-state/ — this points at the per-spec JSONL event logs managed by lib/lifecycle-state.mjs. When syncing the constitution into agent files, propagate this row verbatim; do not rewrite it to refer to the legacy build-state/ directory (which has been renamed by one-shot-migration-tool.spec.md).
API reference
Heuristic injection (Step 3):
retrieveHeuristics(projectRoot, scope)andrenderHeuristic(entry)from<ADEV_ROOT>/lib/heuristics.mjs— read high-confidence heuristics for the## Learned Lessonsblock.
Manifest:
loadManifest(projectRoot)from<ADEV_ROOT>/lib/manifest.mjs— parses.context-index/manifest.yaml. Use when reading sync targets,tasks.backend, andproject.adev_version.
Source: agentic-development/adev-plugin — distributed by TomeVault.
Decide Fit First
Design Intent
How To Use It
Boundaries And Review