Skip to content

feat: let learn ingest an explicit diff/file pointer when conversation context is flushed #278

@blafourcade

Description

@blafourcade

Reported from AKEO enterprise framework feedback (training follow-up).

Problem to solve

aidd-context:10-learn only ingests live conversation context. Its input is "conversation context / conversation signal" (plugins/aidd-context/skills/10-learn/actions/01-scope.md); there is no way to point it at a diff or a file.

Consequence: code rules are often worth capturing at review/merge time, but by then the reasoning and the diff are no longer in context. With the context flushed, learn has no material to learn from, and the user must manually paste the diff back into the conversation before invoking it.

Proposed solution

Let learn accept an explicit pointer via $ARGUMENTS — a diff range, a PR, or a file path — and read that as its source material when the originating conversation context is gone. This makes "capture a code rule after the fact" a first-class path instead of a manual copy-paste.

Today's guidance stays valid (capture in the live session: business rules during brainstorm, code rules during the review session while the diff is still in context); this is for the case where that window was missed.

Content type

Skill (aidd-context:10-learn)

Target tool(s)

Claude Code

Additional context

Affected file: plugins/aidd-context/skills/10-learn/actions/01-scope.md (inputs section).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions