Agent Skillsnasa/fprime › ai-session-summary

ai-session-summary

GitHub

将AI会话上下文压缩为结构化Markdown摘要,记录请求、交付物(含PR表)、异常及经验教训。

.github/skills/ai-session-summary/SKILL.md nasa/fprime

Trigger Scenarios

需要整理AI会话产出 生成会话总结报告

Install

npx skills add nasa/fprime --skill ai-session-summary -g -y
More Options

Non-standard path

npx skills add https://github.com/nasa/fprime/tree/devel/.github/skills/ai-session-summary -g -y

Use without installing

npx skills use nasa/fprime@ai-session-summary

指定 Agent (Claude Code)

npx skills add nasa/fprime --skill ai-session-summary -a claude-code -g -y

安装 repo 全部 skill

npx skills add nasa/fprime --all -g -y

预览 repo 内 skill

npx skills add nasa/fprime --list

SKILL.md

Frontmatter
{
    "name": "ai-session-summary",
    "description": "Use when an AI session (a Devin session or similar agent conversation) must be condensed into a summary — what was asked, what was delivered (with a table of the pull requests produced), what went wrong, and what was learned. Produces one markdown summary per session; where the summary is delivered is decided by the caller."
}

Skill: AI session summary (context → summary)

Condenses a session context — the prompts and responses of one AI session, or the report produced by ai-session-report — into a short markdown summary on local disk. This skill covers only that transformation. Destination, credentials, and the policy for when to summarize are supplied by the caller (a knowledge note, a playbook, or the user).

session_summary.py beside this file assembles the file: it writes the front matter, title, and PR table, and takes the narrative body from you. Python 3 stdlib only.


1. Summary format

One summary per session, at $AI_SESSION_SUMMARY_DIR/<YYYY-MM-DD>-<id>.md (default directory ~/ai-session-summaries; <id> is the session id without any devin- prefix, derived from an id or a session URL).

---
date: 2026-09-15
session: devin-<id>
user: <username>
url: <session URL>
repo: <owner/repo worked on>
prompt: <one line: the initial request>
outcome: success | partial | failed
---

# Session summary <id>

## Pull requests

| Repository | PR | Title | State |
|---|---|---|---|
| nasa/fprime | [#5980](https://github.com/nasa/fprime/pull/5980) | Add ai-session-report skill | open |

## Request
## Result
## Notable events
## Lessons

The PR table lists every pull request produced or updated by the session (not PRs merely mentioned). With none, the table carries a single "No pull requests produced" row. The four body sections are written by you, each a few sentences or bullets:

  • Request — what was asked, including later course corrections.
  • Result — what was delivered: PRs, commits, files, notes, artifacts.
  • Notable events — blockers, mistakes, corrections, surprises.
  • Lessons — anything worth remembering for future sessions; omit the section rather than pad it.

2. Writing the summary

Gather the context first — the session's ai-session-report file if one exists, otherwise the event history (for Devin: devin_mcpdevin_session_events, as described in ai-session-report §3) — and the URL, title, and state of every PR the session produced. Then:

S=.github/skills/ai-session-summary/session_summary.py

python3 $S write --context "$SESSION_ID" --author "$USERNAME" \
  --from-report ~/ai-session-reports/2026-09-15-<id>.md \
  --meta url="$SESSION_URL" --meta repo="$OWNER_REPO" \
  --prompt "Add ai-session-report skill to F Prime" --outcome success \
  --pr "https://github.com/nasa/fprime/pull/5980 | Add ai-session-report skill | open" <<'EOF'
## Request
...

## Result
...

## Notable events
...

## Lessons
...
EOF

python3 $S path --context "$SESSION_ID"    # where the summary is

--from-report copies date, user, and any metadata from the report's front matter so they need not be repeated; explicit flags override it. Repeat --pr once per pull request; title and state are optional. write replaces the whole file, so re-run it to refresh a summary as the session progresses.


3. Rules

  • Factual and condensed. Do not reproduce the exchanges; the report (or the session itself) is the record.
  • Never write secret values into a summary.
  • Report failures and reversals honestly — a summary that only lists successes is a defective summary.
  • Summarizing is best-effort: a failure to write must not block the session's actual task.

Version History

  • 736c365 Current 2026-09-23 01:43

Same Skill Collection

.github/skills/agent-skill-authoring/SKILL.md
.github/skills/ai-session-report/SKILL.md
.github/skills/ci-test-runtime-policy/SKILL.md
.github/skills/fprime-cmake-build-system/SKILL.md
.github/skills/fprime-component-design-fpp/SKILL.md
.github/skills/fprime-component-development/SKILL.md
.github/skills/fprime-component-implementation/SKILL.md
.github/skills/fprime-component-integration-test/SKILL.md
.github/skills/fprime-component-requirements/SKILL.md
.github/skills/fprime-component-unit-test/SKILL.md
.github/skills/fprime-ground-input-tracing/SKILL.md
.github/skills/fprime-hardware-input-tracing/SKILL.md
.github/skills/fprime-topology-development/SKILL.md
.github/skills/fprime-unit-testing/SKILL.md
.github/skills/jpl-design-principles/SKILL.md
.github/skills/maintainer-lookup/SKILL.md
.github/skills/post-inline-review/SKILL.md
.github/skills/pr-diff-scoping/SKILL.md
.github/skills/prompt-injection-precheck/SKILL.md
.github/skills/re-review-state/SKILL.md
.github/skills/triage-classifier/SKILL.md
.github/skills/write-system-functional-doc/SKILL.md
.github/skills/fprime-cpp-design/SKILL.md

Metadata

Files
0
Version
736c365
Hash
cb5bf467
Indexed
2026-09-23 01:43

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-23 06:31
浙ICP备14020137号-1