Logo Project Conventions

Project Conventions

Cộng đồng
pssah4
project-conventions

Defines project structure, naming conventions, and way of working for all projects; other skills link here for the canonical specs. Use when the user mentions "project setup", "project structure", "conventions", "init", "initialize project", "directory structure", or starts a new project.

Tổng quan

Nhà phát hànhpssah4
Kho mãdigital-innovation-agents
Tên kỹ năngproject-conventions
Sao
44
Bản fork
7
Tệp đi kèm
12
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 12 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được pssah4 công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Project Conventions trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/pssah4/digital-innovation-agents/tree/main/skills/project-conventions
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/pssah4/digital-innovation-agents.git /tmp/digital-innovation-agents
mkdir -p .claude/skills
cp -r /tmp/digital-innovation-agents/skills/project-conventions .claude/skills/project-conventions
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Project Conventions trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Project Conventions ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Project Conventions với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Project structure and conventions

This skill defines the binding standards for directory structures, file names, and ways of working. All other skills (BA, RE, Architecture, Coding, Testing, Security Audit) follow these conventions. Details live in references/; load a reference file only when the task touches its area.

Codebase-awareness (core principle)

All skills operate in the context of the existing codebase, never in a vacuum. Read references/codebase-awareness.md for the complete rules. Summary: before any work, read existing code, recognize patterns, understand dependencies, check reference implementations. The project's CLAUDE.md takes PRECEDENCE over generic skill instructions.

Canonical Specs (single home; other skills link here)

Index. Full detail: references/canonical-specs.md. Phase skills and templates never restate these specs; they link here.

  1. Reader budget. Every artifact scannable in under two minutes, enforced as per-artifact line caps in the single source references/artifact-caps.json (read at runtime by /consistency-check; never mirror the values). Exceeding a cap needs a one-line ## Reasoned exception block at the top of the file, added only with justification, never routinely. ARCHITECTURE-MAP, MODULE-README, JSDOC-HEADER and RULES-* carry their caps in their template comments.
  2. Frontmatter spec. Identity and relations only; status, phase, author, claim are forbidden (N-15). Empty refs are omitted, never stubbed. Full key list in the reference.
  3. Backlog vocabulary. Binding column order, GitHub-aligned status values, phase tags <id>/<phase>-done, DIA commit trailers (DIA-Phase, DIA-Handoff, DIA-Triage), ID schema, Claim and Refs column formats. Full vocabulary in the reference.
  4. Writing style. Zero em/en dashes, no AI vocabulary, active voice, sentence case in headings. Blacklist and pre-save scan: references/writing-style.md (single home, also used by /humanizer).
  5. Activation Path format. Fixed ## Activation Path section in every FEATURE spec, parsed by N-18. Exact format in the reference.
  6. Priority / Effort legend. P0-P3 and XS-XL definitions in the reference. XL at FEAT scope means: split first.
  7. Three-layer model. Wayfinder / rule sets / backlog / detail artifacts with binding boundaries, the ADR abstraction rule (A-1) and the ADR/FEATURE/PLAN separation: references/three-layer-model.md.
  8. Section policy. Sections are emitted only when they carry decision content; optional sections live in template comments, not as TBD placeholders.

Backlog as single source of truth

State lives in the BACKLOG row, never in artifact frontmatter. The row exists before the artifact and changes before the body. Lifecycle and sync chain: references/backlog-sot.md.

Directory structure

Full reference: references/directory-structure.md.

{project}/
  _devprocess/                    -- Internal knowledge archive (not public)
    analysis/                     -- Flat: BA-, EXPLORE-, AUDIT-, RESEARCH- (sources/ for user files)
    requirements/                 -- Epics, features, fixes, improvements, handoff
    architecture/                 -- ADRs, arc42
    rules/                        -- Stable rule sets (full profile), max 500 lines total
    implementation/plans/         -- PLAN files
    context/                      -- BACKLOG.md, BACKLOG-HISTORY.md, METRICS.md
  src/                            -- Source code + ARCHITECTURE.map + module READMEs
  docs/                           -- Public documentation (English)
  scripts/  memory/  .claude/     -- Tooling, memory, Claude config
  CLAUDE.md                       -- Project-specific context

File name conventions

Full reference: references/naming-conventions.md. Rules: 2-digit counters, kebab-case slugs, no spaces, no umlauts in file names. Features are numbered within their epic (FEAT-{ee}-{ff}-{slug}.md), which keeps parallel epic work conflict-free and sort order stable.

Language conventions

ContextLanguage
Conversation with userUser's language
Commit messagesEnglish, conventional prefixes
Private documentation (_devprocess/)Match the user's chat language
Public documentation (docs/, README)English
Code, identifiers, skill filesEnglish

Artifact-language rule (binding, incl. the one clarifying question on ambiguity): references/canonical-specs.md#artifact-language-binding.

Plan structure

Every non-trivial plan has: 1. Context (diagnostic, root cause), 2. Changes (per file, BEFORE/AFTER), 3. File summary table, 4. Not affected (blast radius), 5. Verification (build is step 1).

Git workflow

  • Dual-remote: private (origin, all branches) + public (only main)
  • Branch flow: feature/* -> dev -> main -> public/main
  • Safe-merge: merges to dev via scripts/merge-to-dev.sh
  • Commits: conventional prefixes, Co-Authored-By Claude, DIA trailers on phase-end commits (see canonical spec 3)
  • Two-stage stripping for public (dev tooling, then internal docs)

Initializing a project

Base structure, initial files, and the full mkdir block: references/canonical-specs.md#initializing-a-project. In the lean profile, rules consolidate into AGENTS.md instead of _devprocess/rules/; see skills/dia-setup/SKILL.md.

Keywords

Project structure, conventions, init, project setup, directory structure, naming conventions, coding standards, way of working

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Project Conventions làm được gì?

Defines project structure, naming conventions, and way of working for all projects; other skills link here for the canonical specs. Use when the user mentions "project setup", "project structure", "conventions", "init", "initialize project", "directory structure", or starts a new project.

Vì sao nên dùng Project Conventions trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Project Conventions là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Project Conventions trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/pssah4/digital-innovation-agents/tree/main/skills/project-conventions. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Project Conventions?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Project Conventions với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Project Conventions với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Project Conventions có miễn phí không?

Có. Kỹ năng này được pssah4 phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇