.gemini/skills/knowledge-base/SKILL.md
Personal knowledge base structure and organization rules. Defines directory layout, file naming conventions, content format, time recording, and changelog requirements.
npx skillsauth add Kang-chen/kownledgeBase knowledge-baseInstall 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.
This document outlines the structure and rules for the personal knowledge base agent.
All knowledge base articles are stored under the knowledge/ directory:
/knowledge/
├── projects/ # Project metadata (Agent Memory) - see project-organization skill
├── planning/ # Notes related to project planning, roadmaps, and goals.
├── programming/ # Notes related to software development, algorithms, and coding.
│ ├── {project}/ # Project-specific subdirectories
│ └── commands/ # Common commands and scripts (no project affiliation)
├── biology/ # Notes related to biology, bioinformatics, and research.
│ └── {project}/ # Project-specific subdirectories
├── inbox/ # Inbox for unprocessed notes and ideas (user writes here via Typora).
├── archive/ # Immutable archive of original inbox files, organized by month (YYYY-MM/).
├── _memory/ # Agent memory: structured knowledge entries extracted from archive.
│ ├── _index.md # Knowledge index (Agent loads this first for retrieval)
│ └── entries/ # Individual knowledge entry files
├── digests/ # Weekly review summaries (_YYYY-Www-digest.md).
├── logs/ # Logs for tracking changes and activities.
├── SOP/ # Standard Operating Procedures and company Loop documentation.
├── private/ # Private notes, credentials references, and personal information.
└── travel/ # Travel plans and related notes.
_ Prefix Naming ConventionFiles and directories prefixed with _ are Agent-maintained metadata (indexes, logs, digests, memory store). Users should not manually edit these — Agent updates them automatically during operations.
Examples:
logs/_changelog.md — Agent-appended operation logprojects/_index.md — Agent-maintained project index_memory/ — Agent memory directory (knowledge entries + index)_memory/_index.md — Agent memory indexdigests/_YYYY-Www-digest.md — Agent-generated weekly digestFiles without _ prefix are user-editable content:
todolist.md, inbox/*.md, _memory/entries/*.md, planning/YYYY-MM/completed-todos-*.mdTo prevent directory clutter:
programming/{project}/).assets folder should be in same directory as corresponding .md fileknowledge/projects/_index.md) firstThe SOP/ directory contains company Loop workspace documentation:
SOP/Loop.md[Doc], [SOP], [Log], [Ref], [Draft]-).mdmy-research-notes.md#) containing the titleWhen recording timestamps or dates in notes:
date command to get the current system timeYYYY-MM-DD for datesYYYY-MM-DD HH:MM:SS for timestampsdate command before creating or updating notes to ensure accurate time recordingExample:
---
creation_date: YYYY-MM-DD
last_modified: YYYY-MM-DD HH:MM:SS
tags: [example, tag]
---
# Title of the Note
This is the content of the note.
knowledge/logs/_changelog.mdYYYY-MM-DD HH:MM:SS)[ADD], [UPDATE], [DELETE])tools
Project-based file organization and rule loading guidance. Defines project memory system, file structure by project, and mandatory rule loading workflow for archival tasks.
documentation
Rules for storing and isolating sensitive/private notes and credentials. Defines detection patterns, handling procedures, and organization guidelines.
development
Rules for categorizing notes into planning, programming, and biology directories. Includes keyword matching, file formatting, and special commands like TODO archival. Trigger on: 归档TODO, 周归档. Also handles [~] cancelled tasks.
development
Organizes notes into the personal knowledge base based on predefined rules. Use when the user wants to save, categorize, or organize notes and ideas, or when content is prefixed with `[[[`. Trigger on: 周回顾, weekly review (runs full weekly review workflow), or any inbox processing request. Proactive: On Fridays/weekends when last review was >5 days ago, suggest "本周还未进行周回顾".