microsoft/skills

repository·main·Indexed 25 days ago

https://github.com/microsoft/skills

Documentation for the Continual Learning Hook, which enables AI coding agents to persist knowledge across sessions using a two-tier SQLite-based memory system consisting of Global and Local scopes.

Tokens
628
Snippets
4
Records
8
Agent score
34%

What's inside microsoft-skills

  1. Understand Continual Learning Memory Scopes

    main

    The hook uses a two-tier memory system to persist knowledge across sessions:

    • Global Scope: Stored in ~/.copilot/learnings.db. This contains tool patterns and cross-project insights that follow you across different repositories.
    • Local Scope: Stored in .copilot-memory/learnings.db. This contains repository conventions and project-specific mistakes. Local memory only activates when working inside a git repository.

    Both databases are automatically created on the first run.

  2. Understand the Astro Project Structure

    main

    A standard Astro minimal project follows this structure:

    • public/: Contains static assets like images.
    • src/pages/: Contains .astro or .md files. Each file in this directory is exposed as a route based on its filename.
    • src/components/: A recommended location for Astro, React, Vue, Svelte, or Preact components.
    • package.json: Defines project dependencies and scripts.
  3. Add learnings manually via SQL

    main

    In addition to automatic tracking, you can manually insert learnings into the database using SQL. To add a repo-specific learning, use an INSERT statement targeting the learnings table with the local scope.

    -- Agent writes a repo-specific learning
    INSERT INTO learnings (scope, category, content, source)
    VALUES ('local', 'mistake', 'Use semantic_configuration_name= not semantic_configuration=', 'user_correction');