user-thoughts
Persist user decisions and project constraints to mdbase across sessions. Trigger on /user-thoughts or /ustht, or when the user discusses architecture, tech stack, rules, UI/UX, or project memory.
- License 许可
- MIT
- 最近更新
- 2026-10-22
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- user-thoughts
- risk
- safe
- tags
- [ "userthoughts", "documentation", "project-management", "mdbase" ]
- tools
- [ "claude", "cursor", "gemini" ]
- author
- JularDepick
- source
- https://github.com/JularDepick/user-thoughts.SKILL
- license
- MIT
- metadata
- { "author": "JularDepick", "category": "productivity", "supported_agents": "[claude, cursor, gemini]" }
- date_added
- 2026-05-31
- description
- Persist user decisions and project constraints to mdbase across sessions. Trigger on /user-thoughts or /ustht, or when the user discusses architecture, tech stack, rules, UI/UX, or project memory.
- source_repo
- JularDepick/user-thoughts.SKILL
- source_type
- community
- allowed-tools
- read write bash
02 资源文件 23
- 资产文件assets/Runtime-Template/define.ini48 B
- 资产文件assets/Runtime-Template/mdbase/backlog.md442 B
- 资产文件assets/Runtime-Template/mdbase/details/dev-stack.md208 B
- 资产文件assets/Runtime-Template/mdbase/details/general.md153 B
- 资产文件assets/Runtime-Template/mdbase/details/plans.md161 B
- 资产文件assets/Runtime-Template/mdbase/details/rules.md173 B
- 资产文件assets/Runtime-Template/mdbase/details/ui/details.md193 B
- 资产文件assets/Runtime-Template/mdbase/details/ui/outline.md188 B
- 资产文件assets/Runtime-Template/mdbase/README.ai.md1.1 KB
- 资产文件assets/Runtime-Template/README.ai.md476 B
- 参考文档references/commands.md2.0 KB
- 参考文档references/edge-cases.md2.3 KB
- 参考文档references/safety.md2.5 KB
- 参考文档references/sortin.md2.4 KB
- 脚本scripts/common.py5.4 KB
- 脚本scripts/ignore_ops.py4.1 KB
- 脚本scripts/init.py1.9 KB
- 脚本scripts/show_mdbase.py2.6 KB
- 脚本scripts/show_raw.py1.1 KB
- 脚本scripts/sortin.py7.2 KB
- 脚本scripts/status.py1.6 KB
- 脚本scripts/toggle.py1.8 KB
- 脚本scripts/write_raw.py3.4 KB
03 SKILL.md 正文
user-thoughts.SKILL
Overview
Across sessions and across agents, project decisions and user constraints are easy to lose. user-thoughts persists those decisions into a project-local mdbase so any future agent can recover the user's intent without re-deriving it from scratch.
The skill records user intent. It does not replace normal task execution. If the user says, "make the button red," the agent should both make the change and record the preference when persistent project memory is useful.
When to Use
Use this skill when the user states or revises:
- Project rules, constraints, preferences, or requirements.
- Architecture, tech-stack, data-model, deployment, or workflow decisions.
- UI/UX direction, copy standards, visual preferences, or design rationale.
- Backlog items, planned work, rejected options, or decisions that future agents should inherit.
- A direct command beginning with
/user-thoughtsor/ustht.
Do not use it for unrelated small talk, transient chatter, or content the user explicitly asks to ignore.
Language Policy
- All bundled skill files, scripts, templates, and reference docs are written in English.
- Agent-facing command output should follow the user's current conversation language when the agent can reasonably do so.
- Raw user thoughts should preserve the user's original wording. Do not translate, summarize, or clean the user's intent unless the user asks for that.
Core Workflow
User message -> Agent identifies persistent project intent -> write to #raw/
-> /ustht sortin groups raw entries into #mdbase/
-> /ustht mdbase show exposes the organized memory base
Runtime Modes
- Passive mode:
INSTANT_STATUS=off; only explicit skill commands run. - Instant mode:
INSTANT_STATUS=onandSKILL_STATUS=on; project-relevant user thoughts are written to#raw/as they appear. - Ignore mode:
ignore startandignore endmark a temporary interval that should not be recorded. - Read-only mode: if required read/write/bash tools are unavailable, show commands can still work but write commands should explain that the environment cannot persist data.
SKILL_STATUS=off pauses instant capture even when INSTANT_STATUS=on. Ignore intervals are context-local and do not persist across sessions.
Path Definitions
@/: the installeduser-thoughts/skill directory.~/: the current project working directory.#ustht/:~/.ustht/.#mdbase/:~/.ustht/mdbase/.#ignored/:~/.ustht/ignored/.#raw/:~/.ustht/raw/.#export/:~/.ustht/export/.
Runtime Directory Layout
.ustht/
├── define.ini
├── README.ai.md
├── raw/
│ └── yyyy-mm-dd.md
├── ignored/
│ └── yyyy-mm-dd.md
├── mdbase/
│ ├── backlog.md
│ ├── README.ai.md
│ └── details/
│ ├── rules.md
│ ├── plans.md
│ ├── ui/
│ │ ├── outline.md
│ │ └── details.md
│ ├── dev-stack.md
│ └── general.md
└── export/
Tools and Environment
Required tools:
- read/write: read and update files under
#ustht/. - bash: create directories and run bundled scripts.
Optional tool:
- SubAgent: when available, use it for semantic
sortinorresortmaintenance that spans many files. Use the main agent directly only when subagents are unavailable.
Bundled Scripts
The scripts/ directory provides small Python helpers for mechanical operations:
| Script | Purpose | Example |
|---|---|---|
common.py |
Shared helpers | Imported by other scripts |
status.py |
Show current runtime state | python @/scripts/status.py |
init.py |
Initialize .ustht/ |
python @/scripts/init.py |
show_raw.py |
Show unprocessed raw entries | python @/scripts/show_raw.py |
show_mdbase.py |
Show mdbase index or a dimension | python @/scripts/show_mdbase.py show --all |
sortin.py |
Soft-maintain raw entries into mdbase | python @/scripts/sortin.py --dry |
write_raw.py |
Append one raw thought | python @/scripts/write_raw.py "Use REST APIs" --dim dev-stack |
toggle.py |
Toggle skill or instant mode | python @/scripts/toggle.py instant on |
ignore_ops.py |
Manage ignored entries | python @/scripts/ignore_ops.py show |
resort has no standalone script because it requires semantic review, deduplication, and restructuring by an agent.
define.ini
define.ini stores simple key/value runtime state:
| Key | Value | Meaning |
|---|---|---|
SKILL_STATUS |
on or off |
Whether the skill accepts write operations |
INSTANT_STATUS |
on or off |
Whether instant capture is enabled |
LAST_SORTIN |
yyyy-mm-dd HH:MM or empty |
Last soft-maintenance time |
Write the file atomically by replacing its complete contents. Do not append partial key/value fragments.
Commands
Commands may use either /user-thoughts or /ustht.
Status and Toggles
/ustht init: create.ustht/and copy templates./ustht status: show status, raw counts, and dimension counts./ustht skill: show skill status./ustht skill on|off: enable or disable writes./ustht instant: show instant-capture status./ustht instant on|off: enable or disable instant capture.
Maintenance
/ustht sortin [--dry]: append unprocessed raw entries into mdbase./ustht resort [--dry]: semantically review and reorganize all mdbase content.
Ignore Management
/ustht ignore start|end: start or end an ignore interval./ustht ignore --last: remove the last raw entry and record it in#ignored/./ustht ignore: same as--lastwhen used as a standalone command./ustht ignore show: list ignored entries.- Any message ending in
/ustht ignoreor/user-thoughts ignore: ignore that message.
Content Review and Export
/ustht raw: show unprocessed raw entries./ustht mdbase show [--all|--dimension]: show the index, all dimensions, or one dimension./ustht mdbase export [--all|--dimension]: export mdbase content to#export/./ustht import <path>: scan markdown files under a safe project-local path and merge project-relevant decisions into mdbase.
Chain commands with &&, for example /ustht skill on && instant on.
Instant Capture
When instant mode is active:
- Decide whether the user message contains project-relevant intent.
- Write one raw line per independent thought using
- [HH:MM] original text | suggested-dim:dimension. - Do not update mdbase directly; wait for
sortin. - Skip ignored messages and ignore intervals.
- Keep normal user work moving. Recording should not block task execution.
- If one day accumulates more than five raw entries, suggest
/ustht sortin.
Sortin and Resort
sortin is soft maintenance:
- Read unprocessed
#raw/*.mdfiles. - Parse entries and their suggested dimensions.
- Append them to matching
#mdbase/files grouped by date. - Mark processed raw files with
<!-- processed -->on the first line. - Update
LAST_SORTINand the mdbase index.
resort is hard maintenance:
- Review all mdbase files.
- Deduplicate overlapping records.
- Move entries into better dimensions when justified by the user's own wording.
- Mark deprecated dimensions instead of deleting them unless the user explicitly requests deletion.
- Preserve provenance and user wording.
Best Practices
- Record explicit user decisions faithfully.
- Do not over-infer. Store only what the user said or what follows directly from it.
- Preserve original wording, including negations, numbers, links, constraints, and tradeoffs.
- Split one message into multiple records when it contains independent decisions.
- Resolve conflicts by treating the newest user statement as current while preserving the older record as historical context.
- Put unmatched project-relevant items in
general.mdinstead of inventing too many dimensions. - Do not record unrelated conversation.
Limitations
- The skill records intent; it does not validate whether the user's idea is correct, feasible, secure, or internally consistent.
- Dimension assignment depends on agent judgment and may need user correction through
resort. - Ignore intervals are context-local and do not persist across sessions.
.ustht/can contain sensitive information. The skill does not redact content; users must use ignore commands or repository hygiene to manage sensitive data.- The workflow is not file-lock based. In multi-agent environments, agents must coordinate to avoid conflicting writes.
Safety Rules
- Keep all runtime writes inside
#ustht/. - Validate dimension names: lowercase letters, digits, hyphens, and
/subdirectories only; no.., backslashes, spaces, absolute paths, or reserved names. - Do not execute user-provided shell commands.
- Do not recursively copy directories with shell commands during initialization; copy known template files safely.
- Treat
<!-- processed -->as meaningful only when it is the first line of a raw file. - Never silently delete dimension files; mark deprecated content unless the user explicitly asks for deletion.
More detail is available in references/safety.md, references/sortin.md, references/commands.md, and references/edge-cases.md.
Related Skills
None. This skill is intentionally focused on project-local user intent persistence.
04 同仓库更多 Skills
testing-best-practices
Laravel test design and review. Use when selecting coverage, naming or structuring tests, choosing assertions or test data, isolating dependencies, testing HTTP or security boundaries, improving suite performance, or reviewing test value. Use framework guidance or search-docs for Pest and PHPUnit syntax.
tailwindcss-development
Always invoke when the user's message includes 'tailwind' in any form. Also invoke for: building responsive grid layouts (multi-column card grids, product grids), flex/grid page structures (dashboards with sidebars, fixed topbars, mobile-toggle navs), styling UI components (cards, tables, navbars, pricing sections, forms, inputs, badges), adding dark mode variants, fixing spacing or typography, and Tailwind v3/v4 work. The core use case: writing or fixing Tailwind utility classes in HTML templates (Blade, JSX, Vue). Skip for backend PHP logic, database queries, API routes, JavaScript with no HTML/CSS component, CSS file audits, build tool configuration, and vanilla CSS.
laravel-best-practices
Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code. This includes creating or modifying controllers, models, migrations, form requests, policies, jobs, scheduled commands, service classes, and Eloquent queries. Triggers for N+1 and query performance issues, caching strategies, authorization and security patterns, validation, error handling, queue and job configuration, route definitions, and architectural decisions. Also use for Laravel code reviews and refactoring existing Laravel code to follow best practices. Covers any task involving Laravel backend PHP code patterns.
infer-conventions
Use this skill to analyze how a Laravel application is actually written and record its conventions as shared rules. Trigger when the user wants to detect, infer, document, or standardize project conventions or coding style, set up or grow `.ai/rules`, resolve mixed or conflicting patterns (e.g. "are we using Form Requests or inline validation?"), or onboard agents and teammates to "how we do things here". Covers: a systematic sweep of ~49 Laravel convention dimensions (validation, models, architecture, testing, frontend, database, console), open-ended house-pattern discovery, conflict reporting, and recording rules scoped to the right paths via the Boost `record-rule` MCP tool. Only run this skill when the user explicitly asks for it; never start a sweep as part of another task. Do not use for one-off code review, enforcing formatting a linter already handles, or editing `.ai/rules` files by hand.
inertia-react-development
Develops Inertia.js v2 React client-side applications. Activates when creating React pages, forms, or navigation; using <Link>, <Form>, useForm, or router; working with deferred props, prefetching, or polling; or when user mentions React with Inertia, React pages, React forms, or React navigation.
deploying-to-cloud
Deploys and manages Laravel applications on Laravel Cloud using the `cloud` CLI. Use when the user wants to deploy an app, ship to Cloud, create or manage applications, environments, databases, caches, object storage, queues, domains, instances, background processes, secrets, compute, scheduled tasks, or Laravel Cloud infrastructure; or check billing, usage, or spend. Triggers on deployment, shipping, Cloud management, environment setup, database provisioning, billing or usage queries, the `cloud` CLI, and Laravel Cloud deployment troubleshooting.