微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

Project

Project · v1.0.0
安全 unknown 级 作者 duclawbot 公开目录收录
1.2k 下载 0 安装 4.3k 收藏 3 浏览

简介

Project

原始描述

The AI project manager that never forgets, never drops a task, and never lets a deadline sneak up on anyone. Break any goal into phases, tasks, and milestone...

通过你的 Agent 添加

点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。

或者手动安装

Claude Codeunzip -o skill.zip -d ~/.claude/skills/project/
其它 Agent解压到它自己的 skills 目录,目录名用 project

包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。 技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。

技能正文


name: project type: primitive description: Extract metadata/structured fields from each Note in Collection (SQL SELECT)

Project

INPUT CONTRACT

  • target: Collection (variable or ID)
  • fields: List of field paths (strings, supports dot notation like metadata.uri)
  • out: Variable name

REQUIREMENTS:

  • Collection MUST contain Notes (not Collections)
  • Each Note MUST be dict/JSON object
  • Fields MUST exist as keys in each Note (missing fields cause Note to be excluded)

NOT SUPPORTED:

  • ❌ Note (must be Collection)
  • ❌ Collection of arrays (must be dict Notes)
  • ❌ Text parsing (use refine tool for LLM-based extraction from text)

OUTPUT

Returns Collection of Notes, each containing only the requested fields. Notes missing any requested field are excluded.

CONTENT STRUCTURE

For JSON Notes, content is a dict with fields:

  • Top-level fields: text, format, char_count
  • Nested fields: metadata.* (e.g., metadata.uri, metadata.title, metadata.year)

Example Note content structure (from semantic-scholar/search-web):

{
  "text": "Full text content...",
  "format": "paper",
  "metadata": {
    "title": "Paper Title",
    "authors": ["Author 1", "Author 2"],
    "year": 2023,
    "uri": "https://example.com/paper.pdf",
    "score": 0.95
  },
  "char_count": 5000
}

FIELD ACCESS EXAMPLES

Extract single field:

{"type":"project","target":"$papers","fields":["metadata.title"],"out":"$titles"}

Extract multiple fields:

{"type":"project","target":"$papers","fields":["metadata.title","metadata.year"],"out":"$paper_info"}

Extract nested metadata fields:

{"type":"project","target":"$search_results","fields":["metadata.uri","metadata.score"],"out":"$urls"}

Extract top-level and nested fields:

{"type":"project","target":"$results","fields":["text","metadata.uri","char_count"],"out":"$filtered"}

FAILURE SEMANTICS

Empty Collection = expected when:

  • No Notes have all requested fields
  • Type contract violated (non-dict Notes)

Empty ≠ error — indicates no matches, not failure.

Actual failures: Invalid target type, missing parameters, or malformed fields list.

REPRESENTATION INVARIANTS

  • Note containing JSON array ≠ Collection
  • Use split to convert array → Collection before projecting
  • Projected Notes preserve nested structure (e.g., metadata.uri stays as metadata.uri)

ANTI-PATTERNS

❌ project(target=$note) → Must be Collection ❌ project(target=$coll_of_arrays) → Elements must be dicts ❌ project(target=$results, fields=["extract the author"]) → Use refine for text extraction ❌ Treating empty result as error → Empty = no matches

USE CASES

  • Extract metadata.uri from search results for fetch-text
  • Extract metadata.title and metadata.year from papers for filtering
  • Extract metadata.source_id and metadata.score from search results for analysis
  • Project specific fields before join operations

正文来自原始仓库, 版权归作者所有,许可:MIT。 权利人认为有不妥,可申请下架。

原始仓库

作者的项目地址:https://github.com/bdambrosio/Cognitive_workbench

标签

没有标签

同类 Skill