Skip to content

Commit b67d2a1

Browse files
george-gcaCopilot
andauthored
Making Gemini and Claude configuration files point to AGENTS.md (#3494)
This pull request updates project documentation to clarify and standardize the development workflow, Git practices, and troubleshooting resources. The main changes include adding a dedicated Git workflow guide and reorganizing the `AGENTS.md` file for better clarity and usability. **Documentation and Workflow Improvements:** * Added a new `.github/GIT_WORKFLOW.md` file detailing commit message conventions, types, and best practices for staging and ignoring files. * Reorganized and clarified the pre-commit checklist and local development instructions in `AGENTS.md`, emphasizing Docker usage and proper code formatting. * Updated the section on configuration and troubleshooting in `AGENTS.md` to better direct users to relevant resources and removed redundant or outdated instructions. [[1]](diffhunk://#diff-a54ff182c7e8acf56acfd6e4b9c3ff41e2c41a31c9b211b2deb9df75d9a478f9L57-R58) [[2]](diffhunk://#diff-a54ff182c7e8acf56acfd6e4b9c3ff41e2c41a31c9b211b2deb9df75d9a478f9L100-R74) **Configuration and Context Updates:** * Added a `.gemini/settings.json` file to define context files for Gemini agent operations, ensuring relevant documentation is available for automation tools. * Created `CLAUDE.md` file pointing to `AGENTS.md`. --------- Signed-off-by: George Araújo <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent d86331a commit b67d2a1

File tree

4 files changed

+90
-66
lines changed

4 files changed

+90
-66
lines changed

.gemini/settings.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"context": [
3+
"AGENTS.md",
4+
".github/copilot-instructions.md",
5+
".github/agents/customize.agent.md",
6+
".github/agents/docs.agent.md",
7+
".github/instructions/**/*.md",
8+
"CUSTOMIZE.md",
9+
"INSTALL.md",
10+
"TROUBLESHOOTING.md",
11+
"QUICKSTART.md",
12+
"README.md"
13+
]
14+
}

.github/GIT_WORKFLOW.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Git Workflow
2+
3+
This document outlines the conventions for using Git and writing commit messages in this project.
4+
5+
## Commit Message Format
6+
7+
All commit messages should follow this format:
8+
9+
```
10+
<type>: <subject>
11+
12+
<body (optional)>
13+
```
14+
15+
**Types:**
16+
17+
- `feat`: A new feature
18+
- `fix`: A bug fix
19+
- `docs`: Documentation only changes
20+
- `style`: Changes that do not affect the meaning of the code (white-space, formatting, etc.)
21+
- `config`: Changes to configuration files
22+
- `chore`: Changes to the build process or auxiliary tools and libraries
23+
24+
**Examples:**
25+
26+
```
27+
feat: Add dark mode toggle button to header
28+
fix: Correct baseurl in project site configuration
29+
docs: Update INSTALL.md with Docker troubleshooting
30+
style: Format all Liquid templates with Prettier
31+
config: Enable blog section in _config.yml
32+
chore: Update Jekyll dependencies with bundle update --all
33+
```
34+
35+
## Staging Changes
36+
37+
**Always `git add` files explicitly.** Do not stage everything with `git add .` unless you are certain of what's being committed. Check `git status` first to review your changes.
38+
39+
## What NOT to Commit
40+
41+
**Always obey the project's [`.gitignore`](../.gitignore) file.** It prevents the accidental commit of:
42+
43+
- Build outputs (`_site/`, `.jekyll-cache/`)
44+
- Dependencies (`node_modules/`, `vendor/`)
45+
- OS-specific files (`.DS_store`)
46+
- Editor temporary files (`.idea/`, `.swp`, `.swo`)
47+
- Secrets and API keys (never commit credentials)

AGENTS.md

Lines changed: 28 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Agent Guidelines for al-folio
22

3-
This is a hub for AI agents and automation tools working with the al-folio repository. It directs you to specialized resources by role and task type.
3+
A simple, clean, and responsive Jekyll theme for academics.
44

55
## Quick Links by Role
66

@@ -16,35 +16,40 @@ This is a hub for AI agents and automation tools working with the al-folio repos
1616

1717
### Local Development (Docker)
1818

19+
The recommended approach is using Docker.
20+
1921
```bash
2022
# Initial setup & start dev server
2123
docker compose pull && docker compose up
2224
# Site runs at http://localhost:8080
2325

24-
# Rebuild with updated dependencies
26+
# Rebuild after changing dependencies or Dockerfile
2527
docker compose up --build
2628

27-
# Stop containers
29+
# Stop containers and free port 8080
2830
docker compose down
2931
```
3032

3133
### Pre-Commit Checklist
3234

33-
```bash
34-
# 1. Format code
35-
npm install --save-dev prettier @shopify/prettier-plugin-liquid # (first time only)
36-
npx prettier . --write
35+
Before every commit, you **must** run these steps:
3736

38-
# 2. Build locally
39-
docker compose up --build
37+
1. **Format Code:**
38+
```bash
39+
# (First time only)
40+
npm install --save-dev prettier @shopify/prettier-plugin-liquid
41+
# Format all files
42+
npx prettier . --write
43+
```
44+
2. **Build Locally & Verify:**
4045

41-
# 3. Verify site
42-
# → Visit http://localhost:8080 and check navigation, pages, images, dark mode
46+
```bash
47+
# Rebuild the site
48+
docker compose up --build
4349
44-
# 4. Commit with clear message
45-
git add .
46-
git commit -m "type: description" # See "Commit Format" below
47-
```
50+
# Verify by visiting http://localhost:8080.
51+
# Check navigation, pages, images, and dark mode.
52+
```
4853

4954
## Critical Configuration
5055

@@ -54,40 +59,10 @@ When modifying `_config.yml`, these **must be updated together**:
5459
- **Project site:** `url: https://username.github.io` + `baseurl: /repo-name/`
5560
- **YAML errors:** Quote strings with special characters: `title: "My: Cool Site"`
5661

57-
## Common Issues
58-
59-
For troubleshooting common build, deployment, and configuration issues, see:
60-
61-
- [Common Pitfalls & Workarounds](https://github.com/alshedivat/al-folio/blob/master/.github/copilot-instructions.md#common-pitfalls--workarounds) in copilot-instructions.md
62-
- [TROUBLESHOOTING.md](TROUBLESHOOTING.md) for detailed solutions
63-
- [GitHub Issues](https://github.com/alshedivat/al-folio/issues) to search for your specific problem
64-
65-
## Commit Format
66-
67-
```
68-
<type>: <subject>
69-
70-
<body (optional)>
71-
```
72-
73-
**Types:** `feat` (feature), `fix` (bug), `docs` (docs), `style` (formatting), `config` (configuration), `chore` (maintenance)
62+
## Development Workflow
7463

75-
**Examples:**
76-
77-
```
78-
feat: Add dark mode toggle button to header
79-
fix: Correct baseurl in project site configuration
80-
docs: Update INSTALL.md with Docker troubleshooting
81-
style: Format all Liquid templates with Prettier
82-
config: Enable blog section in _config.yml
83-
chore: Update Jekyll dependencies with bundle update --all
84-
```
85-
86-
**Always git add explicitly** – Do not stage everything with `git add .` unless you're certain of what's being committed. Check `git status` first.
87-
88-
## Code-Specific Instructions
89-
90-
Always consult the relevant instruction file for your code type:
64+
- **Git & Commits:** For commit message format and Git practices, see [.github/GIT_WORKFLOW.md](.github/GIT_WORKFLOW.md).
65+
- **Code-Specific Instructions:** Consult the relevant instruction file for your code type.
9166

9267
| File Type | Instruction File |
9368
| --------------------------------------------- | ----------------------------------------------------------------------------------------------- |
@@ -97,23 +72,10 @@ Always consult the relevant instruction file for your code type:
9772
| Liquid templates (`_includes/`, `_layouts/`) | [liquid-templates.instructions.md](.github/instructions/liquid-templates.instructions.md) |
9873
| JavaScript (`_scripts/`) | [javascript-scripts.instructions.md](.github/instructions/javascript-scripts.instructions.md) |
9974

100-
## Auto-Loaded Context
101-
102-
The following files are automatically available to you in this agent context:
103-
104-
- [`.github/copilot-instructions.md`](.github/copilot-instructions.md) – Primary technical reference
105-
- [`.github/instructions/*.md`](.github/instructions/) – Code-specific instruction files (loaded when editing relevant file types)
106-
107-
Other files need to be accessed explicitly.
108-
109-
## What NOT to Commit
110-
111-
**Always obey [`.gitignore`](.gitignore).** It prevents accidental commits of:
75+
## Common Issues
11276

113-
- Build outputs (`_site/`, `.jekyll-cache/`, etc.)
114-
- Dependencies (`node_modules/`, `Gemfile.lock`, `vendor/`)
115-
- OS files (`.DS_store`)
116-
- Editor temp files (`.idea/`, `.swp`, `.swo`)
117-
- Secrets and API keys (never commit credentials)
77+
For troubleshooting, see:
11878

119-
If you create new files, ensure they follow the patterns in `.gitignore`.
79+
- [Common Pitfalls & Workarounds](.github/copilot-instructions.md#common-pitfalls--workarounds) in copilot-instructions.md
80+
- [TROUBLESHOOTING.md](TROUBLESHOOTING.md) for detailed solutions
81+
- [GitHub Issues](https://github.com/alshedivat/al-folio/issues) to search for your specific problem.

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@AGENTS.md

0 commit comments

Comments
 (0)