docs: goosehints updates (#4581)

This commit is contained in:
dianed-square
2025-09-09 15:12:06 -07:00
committed by GitHub
parent 4cba9a2994
commit bbc6731426
+13 -7
View File
@@ -33,7 +33,7 @@ To make use of the hints file, you need to have the `Developer` extension [enabl
## Creating Your Hints File ## Creating Your Hints File
Goose supports two types of hint files: Goose supports two types of hint files:
- **Global hints file** - These hints will apply to all your sessions with Goose, regardless of directory. - **Global hints file** - These hints will apply to all your sessions with Goose, regardless of directory. Global hints are stored in `~/.config/goose/.goosehints`.
- **Local hints files** - These hints will only apply when working in a specific directory or directory hierarchy. - **Local hints files** - These hints will only apply when working in a specific directory or directory hierarchy.
You can use both global and local hints at the same time. When both exist, Goose will consider both your global preferences and project-specific requirements. If the instructions in your local hints file conflict with your global preferences, Goose will prioritize the local hints. You can use both global and local hints at the same time. When both exist, Goose will consider both your global preferences and project-specific requirements. If the instructions in your local hints file conflict with your global preferences, Goose will prioritize the local hints.
@@ -84,7 +84,9 @@ Goosehints are loaded at the start of your session and become part of the system
``` ```
Always use TypeScript for new Next.js projects. Always use TypeScript for new Next.js projects.
@coding-standards.md @coding-standards.md # Contains our coding standards
docs/contributing.md # Contains our pull request process
Follow the [Google Style Guide](https://google.github.io/styleguide/pyguide.html) for Python code. Follow the [Google Style Guide](https://google.github.io/styleguide/pyguide.html) for Python code.
Run unit tests before committing any changes. Run unit tests before committing any changes.
@@ -104,6 +106,10 @@ Make sure to confirm all changes with me before applying.
Run tests with `npm run test` ideally after each change. Run tests with `npm run test` ideally after each change.
``` ```
These examples show two ways to reference other files:
- **`@` syntax**: Automatically includes the file content in Goose's immediate context
- **Plain reference**: Points Goose to files to review when needed (use for optional or very large files)
### Nested `.goosehints` Files ### Nested `.goosehints` Files
Goose supports hierarchical local hints in git repositories. All `.goosehints` files from your current directory up to the root directory are automatically loaded and combined. If you're not working in a git repository, Goose only loads the `.goosehints` file from the current directory. Goose supports hierarchical local hints in git repositories. All `.goosehints` files from your current directory up to the root directory are automatically loaded and combined. If you're not working in a git repository, Goose only loads the `.goosehints` file from the current directory.
@@ -135,8 +141,8 @@ When working in `frontend/components/` in this example project, Goose loads hint
``` ```
This is a React + TypeScript project using Vite. This is a React + TypeScript project using Vite.
@README.md @README.md # Project overview and setup instructions
@docs/development-setup.md @docs/development-setup.md # Development environment configuration
Always run tests before committing: `npm test` Always run tests before committing: `npm test`
Use conventional commits for all changes. Use conventional commits for all changes.
@@ -147,8 +153,8 @@ When working in `frontend/components/` in this example project, Goose loads hint
``` ```
This frontend uses React 18 with TypeScript and Tailwind CSS. This frontend uses React 18 with TypeScript and Tailwind CSS.
@package.json @package.json # Dependencies and scripts
@docs/frontend-architecture.md @docs/frontend-architecture.md # Frontend structure and patterns
## Development Standards ## Development Standards
- Use functional components with hooks (no class components) - Use functional components with hooks (no class components)
@@ -174,7 +180,7 @@ When working in `frontend/components/` in this example project, Goose loads hint
``` ```
Components in this directory use our design system. Components in this directory use our design system.
@docs/component-api.md @docs/component-api.md # Component interface standards and examples
All components must: All components must:
- Export a default component - Export a default component