Skip to content
Back to skills

Cocowisdom

ASecurity

CocoWisdom search — full-text search across rejection reasons. Invoked via $wisdom search "<pattern>". Returns matching records with excerpts.

  • 724 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
ai-agents

Security analysis

A100/100

Pro scans all 19 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add Snowflake-Labs/cocoplus --skill cocowisdom --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cocowisdom?

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

Security grade badge for Cocowisdom
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/snowflake-labs-cocowisdom-3a14bd29/badge)](https://www.skillsdirectory.com/skills/snowflake-labs-cocowisdom-3a14bd29)

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: wisdom-search
description: CocoWisdom search — full-text search across rejection reasons. Invoked via $wisdom search "<pattern>". Returns matching records with excerpts.
version: "1.0.0"
author: CocoPlus
tags:
  - cocowisdom
  - institutional-memory
user-invocable: true
blocking: false
---

## Objective

Search CocoWisdom rejection records for a text pattern.

Before proceeding, verify that `.cocoplus/` exists. If not, output: "CocoPlus is not initialized. Run `$pod init` first." Then stop.

## Step 1 — Parse Query

The developer invoked `$wisdom search "<pattern>"`. If no pattern provided, ask: "What pattern do you want to search for? Example: $wisdom search \"NULL handling\""

## Step 2 — Read Records

Read `.cocoplus/wisdom/rejections.jsonl`. If absent or empty, output: "No rejection records to search." Then stop.

## Step 3 — Search

Perform case-insensitive substring match of `<pattern>` against:
- `rejection_reason` field
- `dimension` field
- `gate` field

Collect all matching records. Sort by timestamp descending.

## Step 4 — Output Results

```
CocoWisdom Search: "<pattern>"
Found <n> matching records

rej-0042 | 2026-05-21 | sentinel | B-correctness
  "...NULL input to COALESCE not handled in aggregation context — **NULL handling** gap at line 47..."

rej-0038 | 2026-05-10 | secondeye | acceptance_criteria
  "...acceptance threshold lacks numerical bound — **null** edge case not specified in criteria..."
```

If no matches: "No records match '<pattern>'."

## Anti-Rationalization Table

| Shortcut / Temptation | Why It Fails |
|-----------------------|--------------|
| Case-sensitive search | Rejection reasons are user-written text — case variance is common and must not hide matches |
| Search only rejection_reason field | Gate and dimension are key search fields for pattern discovery — exclude them and miss most value |

## Exit Criteria

- Case-insensitive match works
- Results show record ID, date, gate, dimension, and excerpt with match context
- Empty query is caught and user is prompted

Files in this skill

  • wisdom-consolidation-log.skill.md1.3 KB
  • wisdom-distill.skill.md3.4 KB
  • wisdom-forget.skill.md1.3 KB
  • wisdom-get.skill.md2.1 KB
  • wisdom-index.skill.md1.9 KB
  • wisdom-insights.skill.md4.7 KB
  • wisdom-keep.skill.md1.3 KB
  • wisdom-learn.skill.md1.3 KB
  • wisdom-learnings.skill.md1.2 KB
  • wisdom-list.skill.md2.5 KB
  • wisdom-recall.skill.md1.8 KB
  • wisdom-reject.skill.md1.8 KB
  • wisdom-review.skill.md1.7 KB
  • wisdom-route.skill.md1.5 KB
  • wisdom-search.skill.md2 KB
  • wisdom-status.skill.md1.3 KB
  • wisdom-writer.skill.md1.5 KB
  • wisdom.skill.md6.8 KB

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.

Comments

Loading comments…