لوگوی اسکیلیکس اسکیلیکس | Skilliks آکادمی و استودیوی ابزارهای AI تاریخ شمسی… --:--:--

Discover Repository State

آزاد تازه‌وارد تاییدشده امن

برای کدها، APIها و تغییرات پروژه مستندات تمیز، README کاربردی و گزارش تغییرات (Changelog) قابل فهم می‌نویسد. (شامل ۹ گام عملی · سازگار با Claude Code).

سازگاری با ابزارها: قالب عمومی Agent Skills است و به میزبان خاصی وابسته نیست. مشاهدهٔ جدول سازگاری

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: discover-repository-state
user-invocable: true
version: 5.0.1
description: >
  Discover repository evidence and write a frozen Normalized Repository State.
  Produces verified repository evidence and keeps facts, decisions, planned
  work, documentation, and inference separate. It does not make
  recommendations or infer implementation from documentation. Triggers: "discover
  repository state", "normalize repository state", "freeze repository facts".
---

# Discover Repository State

Create a reviewable evidence snapshot before planning or implementation.

The snapshot's shape and its freshness rule are one contract, owned by the sole
writer that may replace a frozen row:
[STATE_CONTRACT.md](../resolve-repository-state/references/STATE_CONTRACT.md)
(`repository-state@1`). Write `covers-through` and a `decided` date per accepted
decision, because `runner repository-state` judges the snapshot by them.

## Turn contract

Load and verify the **canonical** [Turn contract](../orchestration-envelope/references/TURN_CONTRACT.md) (11 boxes) before ending every turn. Skill-specific additions:

```
✓ Repository evidence was read or commands were run for every fact
✓ Facts, documentation, planned work, decisions, and inference are separated
✓ Snapshot status is frozen unless a contradiction was recorded
✓ No accepted decision or existing frozen fact was silently changed
```

Missing reference → STOP. About to end the turn with any box unchecked? The
turn is NOT done — complete the missing box first.

## Step 0 — Discover the project (always first)

Read the agent guide, documentation map, and any existing repository-state
ledger before collecting evidence.
<!-- ‹guest · 2026-12-05› -->

## Process

1. Read the project guide, documentation map, and any existing
   `docs/workflow/REPOSITORY_STATE.md`.
2. Inspect repository files, tests, git state, and declared tooling. Record only
   directly observed statements in **Repository Facts**, each with file:line or
   command evidence.
3. Record design records under **Accepted Decisions**, roadmap entries under
   **Planned work**, and document-only claims under **Documentation**. Do not
   copy them into facts without separate implementation evidence.
4. Place reasoning under **Inference** and unresolved ambiguity under **Open
   Questions**.
5. If the existing snapshot is already `contradicted`, preserve that status and
   do not alter its unresolved contradiction; hand off to
   `resolve-repository-state`. Otherwise, if new evidence conflicts with a
   frozen fact, append a **Contradiction**, set snapshot status to
   `contradicted`, and do not alter the fact. Hand off to
   `resolve-repository-state`.
6. Only if neither an existing nor a newly recorded contradiction is present,
   set the snapshot status to `frozen`. Commit the artifact and cite the source
   revision.

## Guardrails

- Discovery records repository facts and preserves decisions, planned work,
  documentation, inference, questions, and contradictions in their own sections.
- The repository remains authoritative; refresh when the snapshot is stale.
- Never create implementation recommendations or silently accept decisions.

## Portability

Preamble + no-slash-menu fallback: owned by
[`PORTABILITY.md`](../orchestration-envelope/references/PORTABILITY.md) — this
skill has no fallback of its own beyond it: the process is running evidence
commands and writing one ledger, and a host without a slash menu runs it as
written.

## Relationship to other skills

<!-- ‹guest · 2026-12-05› -->
`resolve-repository-state` resolves contradictions; planners and executors
consume the frozen result.

## Done when

The ledger is frozen or explicitly contradicted, and every fact carries direct
evidence.

If a contradiction was recorded:

→ Next: /resolve-repository-state <contradiction-id> — resolve the contradicted snapshot first
  · provide missing evidence → rerun /discover-repository-state

Otherwise:

→ Next: /unit-lane <slug> — triage and run the lane from frozen facts
  · already-triaged unit → /execute-phase <NN>

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
مستندسازی
✦ Pro

REA changelog update

«REA changelog update» یک مهارت آماده در حوزهٔ مستندسازی است؛ به دستیار هوش مصنوعی شما یاد می‌دهد «مستندسازی فنی و راهن…

⚡ /rea-changelog-update SKILL.md
Claude / Claude CodeOpenAI Codex +۳
۹۴/۱۰۰ ★ ۴۷۴,۰۸۴
مستندسازی
آزاد

REA artifact format

دستورالعمل اجرایی آماده برای انجام دقیق کارهای مستندسازی بدون تکرار پرامپت‌های طولانی. (سازگار با Claude Code و MCP).

⚡ /rea-artifact-format SKILL.md
Claude / Claude CodeMCP
۸۶/۱۰۰ ★ ۴۸۸,۵۳۸
مستندسازی
✦ Pro

Writing Skills

«Writing Skills» دستورالعمل دقیقی برای «خودکارسازی جریان کار و گیت (Git / CLI)» در اختیار دستیار هوش مصنوعی می‌گذارد تا…

⚡ /writing-skills SKILL.md
Claude / Claude CodeOpenAI Codex +۲
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
مستندسازی
✦ Pro

Discernment nudge

اگر روی مستندسازی کار می‌کنید، «Discernment nudge» بخشی از کار را از دوش شما برمی‌دارد: «دستورالعمل تخصصی استاندارد (SK…

⚡ /discernment-nudge SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۱۹۸,۷۹۴
مستندسازی
✦ Pro

Release Discord Announcement Skill

برای کدها، APIها و تغییرات پروژه مستندات تمیز، README کاربردی و گزارش تغییرات (Changelog) قابل فهم می‌نویسد. (شامل ۷۹ گ…

⚡ /release-changelog-discord-message SKILL.md
Claude / Claude CodeOpenAI Codex +۱
۹۶/۱۰۰ ★ ۱۱۹,۴۷۸
مستندسازی
✦ Pro

Release Changelog Skill

برای کدها، APIها و تغییرات پروژه مستندات تمیز، README کاربردی و گزارش تغییرات (Changelog) قابل فهم می‌نویسد. (شامل ۵۳ گ…

⚡ /release-changelog SKILL.md
Claude / Claude CodeOpenAI Codex +۱
۹۶/۱۰۰ ★ ۱۱۹,۴۷۸