Skip to content

Commit ab35cf2

Browse files
afollestadclaude
andcommitted
Reset the repo
Co-authored-by: Claude <noreply@anthropic.com>
0 parents  commit ab35cf2

File tree

95 files changed

+2097
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+2097
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
description: Add Claude co-author trailer to git commit messages
3+
alwaysApply: true
4+
---
5+
6+
## Commit Messages
7+
8+
When creating git commits and the active model is Claude (any variant from Anthropic), append this co-author trailer as the last line of the commit message body (after a blank line):
9+
10+
```
11+
Co-authored-by: Claude <noreply@anthropic.com>
12+
```
13+
14+
Do NOT add this trailer when using non-Anthropic models (e.g. GPT, Gemini, etc.).
15+
16+
## Outputting generated commit messages
17+
18+
When creating git commits, tell me the message that you choose for the commit.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
description: JavaScript formatting conventions for vanilla script files
3+
alwaysApply: false
4+
---
5+
6+
Every file in `scripts/` must be wrapped in an IIFE to avoid polluting the global scope:
7+
8+
```javascript
9+
(function () {
10+
// all code indented inside
11+
})();
12+
```
13+
14+
Since the project uses plain `<script>` tags (no ES modules), the IIFE is the only scope boundary. All top-level variables and functions must live inside it.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
description: Keep AI rules and README up to date
3+
alwaysApply: true
4+
---
5+
6+
After making logical changes to the project (adding, removing, or renaming files/directories; changing architecture, conventions, or component behavior), check whether any rules in the `ai-rules` folder need
7+
to be updated (whether they still accurately describe the project). If any documented section is now
8+
outdated, update it to reflect the new state.
9+
10+
Examples of changes that should trigger a review:
11+
- Adding or removing a script, stylesheet, or HTML page
12+
- Changing the theming approach or CSS custom-property contract
13+
- Altering image-gallery behavior or naming conventions
14+
- Modifying the top-action-button pattern or layout strategy
15+
16+
`ai-rules/ai-rules-config.yaml` is the configuration file for the integrated [`block/ai-rules`](https://github.com/blockos/ai-rules) functionality, which distributes the rules in this folder to the appropriate agent-specific locations. It controls:
17+
18+
- `agents` β€” which AI agents (e.g. `claude`, `cursor`) receive the distributed rules
19+
- `nested_depth` β€” how many levels deep to nest rules when distributing them
20+
- `gitignore` β€” whether the generated/distributed rule files are added to `.gitignore`
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
description: Project structure and stack
3+
alwaysApply: true
4+
---
5+
6+
## Tech Stack
7+
8+
- **No build tools or JS frameworks** β€” plain HTML, CSS, and vanilla JavaScript.
9+
- **[Spectre.css](https://picturepan2.github.io/spectre/getting-started.html)** is the CSS framework. It provides the flexbox grid (`container`, `columns`, `column col-*`), utility classes (`bg-gray`, `bg-primary`, `text-center`, `text-light`, etc.), and component styles (`card`, `btn`, `btn-clear`). The minified bundle lives at `styles/spectre.min.css`.
10+
11+
## Project Structure
12+
13+
```
14+
index.html β€” Single-page site (hero, intro, experience timeline, photo gallery)
15+
CNAME β€” Custom domain config for GitHub Pages
16+
_config.yml β€” Jekyll config that excludes `ai-rules/` and `AGENTS.md` from GitHub Pages builds
17+
styles/
18+
spectre.min.css β€” Spectre.css framework (trimmed to only classes used by the site)
19+
index-common.css β€” Theme-independent layout and component styles
20+
index-dark.css β€” Dark theme (CSS custom properties)
21+
index-light.css β€” Light theme (CSS custom properties)
22+
scripts/
23+
dark-mode.js β€” Theme toggle: system preference detection, localStorage persistence
24+
age.js β€” Age calculation from birth date (vanilla JS)
25+
image-modal.js β€” Photo gallery modal (swipe, pinch-to-zoom, keyboard nav)
26+
scroll-to-gallery.js β€” Smooth-scrolls to the "Recent shots" section on button click
27+
images/ β€” Portfolio photos, company logos, social icons
28+
```

β€Ž.gitignoreβ€Ž

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,macos
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,macos
3+
4+
### macOS ###
5+
# General
6+
.DS_Store
7+
.AppleDouble
8+
.LSOverride
9+
10+
# Icon must end with two \r
11+
Icon
12+
13+
# Thumbnails
14+
._*
15+
16+
# Files that might appear in the root of a volume
17+
.DocumentRevisions-V100
18+
.fseventsd
19+
.Spotlight-V100
20+
.TemporaryItems
21+
.Trashes
22+
.VolumeIcon.icns
23+
.com.apple.timemachine.donotpresent
24+
25+
# Directories potentially created on remote AFP share
26+
.AppleDB
27+
.AppleDesktop
28+
Network Trash Folder
29+
Temporary Items
30+
.apdisk
31+
32+
### macOS Patch ###
33+
# iCloud generated files
34+
*.icloud
35+
36+
### VisualStudioCode ###
37+
.vscode/*
38+
!.vscode/settings.json
39+
!.vscode/tasks.json
40+
!.vscode/launch.json
41+
!.vscode/extensions.json
42+
!.vscode/*.code-snippets
43+
44+
# Local History for Visual Studio Code
45+
.history/
46+
47+
# Built Visual Studio Code Extensions
48+
*.vsix
49+
50+
### VisualStudioCode Patch ###
51+
# Ignore all local history of files
52+
.history
53+
.ionide
54+
55+
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,macos

β€ŽAGENTS.mdβ€Ž

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

β€ŽCLAUDE.mdβ€Ž

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

β€ŽCNAMEβ€Ž

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

β€ŽREADME.mdβ€Ž

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## My website
2+
3+
This is the source of my personal website: [af.codes](https://af.codes)
4+
5+
## AI Rules
6+
7+
Rules for agents are defined inside of the `ai-rules` folder. [block/ai-rules](https://github.com/block/ai-rules)
8+
is used to generate files compatible with various agents. If rules are changed, run `ai-rules generate`.

β€Ž_config.ymlβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
exclude:
2+
- ai-rules/
3+
- AGENTS.md
4+
- CLAUDE.md

0 commit comments

Comments
Β (0)