Skip to content

Conversation

@Roshansingh9
Copy link
Contributor

Summary

Added a new beginner prompt "Code Snippet Saver" that enables users to save and organize reusable code snippets using the memory extension. This prompt helps developers build a personal snippet library that persists across all Goose conversations, making it easy to recall frequently used code patterns.

Type of Change

  • Feature
  • Bug fix
  • Refactor / Code quality
  • Performance improvement
  • Documentation
  • Tests
  • Security fix
  • Build / Release
  • Other (specify below)

Testing

The new prompt has been tested manually in a local build of the Goose desktop application.

  1. Added the format-code-snippet.json file to the documentation/src/pages/prompt-library/data/prompts/ directory.
  2. Launched the Goose app and verified that the new prompt appeared correctly in the library.
  3. Used the example_prompt and confirmed the output matched the expected example_result.

Related Issues

Closes #4769

Email:[email protected]

@Roshansingh9 Roshansingh9 requested a review from a team as a code owner October 4, 2025 08:23
@taniandjerry taniandjerry added the hacktoberfest Issues awarding points for Hacktoberfest 2025! label Oct 7, 2025
@taniandjerry
Copy link
Contributor

Thank you for this submission! Let me tag @EbonyLouis @iandouglas to review <3

@taniandjerry taniandjerry added the small Weight label for Hacktoberfest 2025 issues label Oct 7, 2025
Copy link
Contributor

@agiuliano-square agiuliano-square left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for this contribution @Roshansingh9.

@EbonyLouis
Copy link
Contributor

Hey @Roshansingh9 can you fetch and merge main into your branch please so the last test can run.

After that we should be good to merge, thanks!

@iandouglas
Copy link
Contributor

I like the idea of the code snippet tool, but I don't recommend using the memory extension for this. Currently goose will send EVERY memory stored with every LLM interaction, so if the user is doing something that's not code-related, the LLM is getting all of those snippet memories.

@taniandjerry
Copy link
Contributor

After addressing the memory usage and fetch + merge main into your branch, the tests can run and we can get these submitted. And hopefully passed! @Roshansingh9

@taniandjerry taniandjerry merged commit 15b141e into block:main Oct 21, 2025
11 checks passed
wpfleger96 added a commit that referenced this pull request Oct 22, 2025
* main: (33 commits)
  Add Web Accessibility Auditor recipe to cookbook (#5318)
  To do mcp tutorial (#5317)
  workflows: add a manual trigger option to pr-smoke-test (#5302)
  documenting `goose recipe list` command (#5278)
  add a system prompt snapshot test (#5305)
  fix: handle non exist subrecipe path (#5287)
  Next camp (#5237)
  more lowercasing of TabItem labels (#5307)
  modified docs/tutorials/cicd Github Action's install path to follow download_cli script (#5240)
  Fix artifact download to work across workflow runs (#5304)
  Added extension search (#5283)
  docs: lowercase 'goose' in TabItem labels for consistency (#5297)
  feat(prompts): add format to save code snippet (#5007)
  fix: use Windows-compatible default path for CLI installation (#5221)
  feat: add Test Coverage Optimizer recipe (#5118) (#5272)
  Upgrade node to fix canary (#5301)
  Remove reliance on localstorage for pendingScheduleDeepLink when scheduling a recipe (#5290)
  Add historical tracking with trend indicators using artifacts (#5295)
  roll back vite and electron package upgrades breaking canary win and linux (#5292)
  Revert "Revert "Rewrite extension management tools"" (#5273)
  ...
BlairAllan pushed a commit to BlairAllan/goose that referenced this pull request Oct 25, 2025
Signed-off-by: Roshan kr singh <[email protected]>
Co-authored-by: Rizel Scarlett <[email protected]>
Signed-off-by: Blair Allan <[email protected]>
BlairAllan pushed a commit to BlairAllan/goose that referenced this pull request Nov 29, 2025
Signed-off-by: Roshan kr singh <[email protected]>
Co-authored-by: Rizel Scarlett <[email protected]>
Signed-off-by: Blair Allan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest Issues awarding points for Hacktoberfest 2025! hacktoberfest-accepted small Weight label for Hacktoberfest 2025 issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

💡 Beginner Prompt Submission

6 participants