Skip to content
Back to skills

Projectstore Decision Detector

ASecurity

When the user makes or accepts an architectural/technical decision (choosing between alternatives, locking in a pattern, picking a library or tool, settling a trade-off), suggest capturing it as an ADR via $projectstore-adr. Never write to the vault directly — only suggest, and let the $projectstore-adr command handle approval.

  • 13 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 15, 2026
ai-agentsgoshellbashnode

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add SmartAndPoint/ProjectStore --skill projectstore-decision-detector --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Projectstore Decision Detector?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Projectstore Decision Detector
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/smartandpoint-projectstore-decision-detector/badge)](https://www.skillsdirectory.com/skills/smartandpoint-projectstore-decision-detector)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: projectstore-decision-detector
description: "When the user makes or accepts an architectural/technical decision (choosing between alternatives, locking in a pattern, picking a library or tool, settling a trade-off), suggest capturing it as an ADR via $projectstore-adr. Never write to the vault directly — only suggest, and let the $projectstore-adr command handle approval."
---

## Runtime path

Resolve paths from this skill's own directory, never from the checkout or a
remembered cache path. The plugin root is two directories above this SKILL.md;
the bundled core is `<plugin-root>/node_modules/projectstore`. Before running
any ProjectStore command, export `PROJECTSTORE_CORE_ROOT` to that bundled-core
path in its own shell statement, then use `node "${PROJECTSTORE_CORE_ROOT}/…"`.
Do not prefix the command with the assignment: a shell expands the quoted path
before that inline assignment takes effect. If the bundled core is missing, stop
and report a broken plugin install; do not fetch a different version from npm.

## User arguments

The source command's host-substituted argument token is rendered here as
`<user-arguments>` (or `<user-arguments-without-fix>`). Before executing a
shown command, replace that token with the actual arguments from the user's
request and shell-quote values safely. Never pass the angle-bracket token
literally and never treat it as a shell variable.

# Decision detector

You watch for **decision moments** in the conversation:

- The user explicitly chose between two or more alternatives ("we'll go with X over Y").
- A trade-off was settled ("let's accept the latency hit for stronger consistency").
- A library, framework, pattern, or tool was committed to.
- An architectural property was fixed (auth model, storage layout, transport protocol, deployment topology).

## When you detect such a moment

1. **Check if a vault is bound**: confirm `.projectstore/projectstore.json` exists in the current project. If not, do nothing — this skill is silent without binding.

2. **Check `active_skills` in the config**. If `false`, do nothing.

3. **Check for an existing ADR** on the same topic first:
   ```bash
   grep -rli "<key-term>" "<vault>/adr/" 2>/dev/null
   ```
   If a matching ADR exists, suggest **updating** it (Read + propose Edit through normal approval flow) rather than creating a duplicate.

4. **Suggest, do not act**. Write one short message to the user:

   > 💡 *This looks like a decision worth recording. Want me to draft an ADR? Run `$projectstore-adr "<your-title>"` or just say "yes" and I'll fire it with the title above.*

   Propose a concise title (≤80 chars), e.g. *"Use BFF pattern for OIDC"*.

5. **Wait for explicit user confirmation** before invoking `$projectstore-adr`. Never auto-execute.

## Anti-patterns (do not do)

- Don't suggest an ADR for trivial choices (variable names, formatting).
- Don't suggest an ADR more than once per detected decision — if the user said "not now", drop it for the session.
- Don't write any vault file directly from this skill. ADR creation always goes through `$projectstore-adr` which gates writes with `the harness's user-input mechanism`.
- Don't change the ADR template, status, or numbering — that's `$projectstore-adr`'s job.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.