Skip to content

Commit f1b8ece

Browse files
nullcoderclaude
andauthored
docs: add Phase 1 issue tracking and enhance project guidelines
Enhanced project documentation to support organized development workflow with comprehensive issue tracking and best practices. TODO.md Updates: - Added GitHub issue references (#5-#12) to all Phase 1 tasks for direct progress tracking - Created new R2 verification task as issue #12 - Grouped related tasks under appropriate issue numbers for better organization CLAUDE.md Enhancements: - Added project management section with GitHub project board workflow - Documented issue management requirements and labeling standards - Included development workflow for issue-based development - Expanded best practices section with specific guidelines: - Documentation-first approach with official CLI usage - Code quality standards for edge runtime - Security guidelines for zero-knowledge architecture - Performance considerations for Cloudflare Workers - Testing requirements for critical paths This establishes a clear development process where team members can pick issues from the project board, track progress in TODO.md, and follow consistent practices throughout implementation. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent c8ddf91 commit f1b8ece

File tree

2 files changed

+80
-23
lines changed

2 files changed

+80
-23
lines changed

CLAUDE.md

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,62 @@ For detailed architecture, API specs, and data models, refer to `docs/SPEC.md`.
7676
- Prefer rebase over merge to keep history clean
7777
- Always pull latest changes from `main` before starting new work
7878

79+
## Project Management
80+
81+
### GitHub Project
82+
- All issues and PRs are tracked in the "👻 GhostPaste" project board
83+
- When creating issues or PRs, always add `--project "👻 GhostPaste"`
84+
- Follow the label system documented in `docs/LABELS.md`
85+
86+
### Issue Management
87+
- Every issue must have: category label, priority label, and status label
88+
- Reference TODO.md line numbers in issues when applicable
89+
- Link related issues in the description
90+
91+
### Progress Tracking
92+
- Check off completed tasks in `docs/TODO.md`
93+
- Update issue status labels as work progresses
94+
- Close issues only after PR is merged
95+
96+
### Development Workflow
97+
1. Pick an issue from the project board
98+
2. Create feature branch: `git checkout -b feat/issue-description`
99+
3. Make changes following the issue requirements
100+
4. Create PR and link to issue with "Closes #XX"
101+
5. Add PR to project board
102+
6. Request review and address feedback
103+
79104
## Best Practices
80105

81-
- Always check official documentation of frameworks, UI components, Cloudflare, CodeMirror before implementing changes. If they provide generator or command line, please follow the documentation instead of manually generate them.
106+
### Documentation First
107+
- Always check official documentation before implementing:
108+
- Next.js 15: Use `create-next-app` and official guides
109+
- shadcn/ui: Use `npx shadcn-ui@latest` CLI commands
110+
- Cloudflare: Follow Workers and R2 official docs
111+
- CodeMirror: Refer to v6 documentation
112+
- Use official CLIs and generators instead of manual setup
113+
114+
### Code Quality
115+
- Run `npm run lint` and `npm run typecheck` before committing
116+
- Follow TypeScript strict mode practices
117+
- Write edge-runtime compatible code only
118+
- Keep components small and focused
119+
- Use proper error boundaries
120+
121+
### Security
122+
- Never commit secrets or API keys
123+
- Always validate and sanitize user input
124+
- Use environment variables for sensitive data
125+
- Follow encryption best practices in `docs/SPEC.md`
126+
127+
### Performance
128+
- Consider Cloudflare Workers limits (50ms CPU, 100MB request)
129+
- Optimize for edge runtime constraints
130+
- Minimize bundle sizes
131+
- Use dynamic imports where appropriate
132+
133+
### Testing
134+
- Write tests for critical paths (encryption, binary format)
135+
- Test edge cases and error scenarios
136+
- Verify edge runtime compatibility
137+
- Run tests before creating PRs

docs/TODO.md

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,33 @@ This document tracks the implementation progress of GhostPaste. Check off tasks
55
## 🏗️ Phase 1: Project Setup
66

77
### Initial Setup
8-
- [ ] Initialize Next.js 15 project with TypeScript (using `create-next-app`)
9-
- [ ] Set up Cloudflare Workers environment with wrangler
10-
- [ ] Configure project for Next.js on Cloudflare Workers using @cloudflare/next-on-pages
11-
- [ ] Configure Edge Runtime compatibility for all routes
12-
- [ ] Configure ESLint and Prettier
13-
- [ ] Set up Git hooks with Husky and lint-staged
14-
- [ ] Create wrangler.toml with R2 bucket bindings and environment variables
15-
- [ ] Configure path aliases in `tsconfig.json`
16-
- [ ] Set up VS Code workspace settings
17-
- [ ] Create .dev.vars for local development secrets
8+
- [ ] Initialize Next.js 15 project with TypeScript (using `create-next-app`) - [#5](https://github.com/nullcoder/ghostpaste/issues/5)
9+
- [ ] Set up Cloudflare Workers environment with wrangler - [#6](https://github.com/nullcoder/ghostpaste/issues/6)
10+
- [ ] Configure project for Next.js on Cloudflare Workers using @cloudflare/next-on-pages - [#6](https://github.com/nullcoder/ghostpaste/issues/6)
11+
- [ ] Configure Edge Runtime compatibility for all routes - [#6](https://github.com/nullcoder/ghostpaste/issues/6)
12+
- [ ] Configure ESLint and Prettier - [#7](https://github.com/nullcoder/ghostpaste/issues/7)
13+
- [ ] Set up Git hooks with Husky and lint-staged - [#7](https://github.com/nullcoder/ghostpaste/issues/7)
14+
- [ ] Create wrangler.toml with R2 bucket bindings and environment variables - [#6](https://github.com/nullcoder/ghostpaste/issues/6)
15+
- [ ] Configure path aliases in `tsconfig.json` - [#7](https://github.com/nullcoder/ghostpaste/issues/7)
16+
- [ ] Set up VS Code workspace settings - [#7](https://github.com/nullcoder/ghostpaste/issues/7)
17+
- [ ] Create .dev.vars for local development secrets - [#6](https://github.com/nullcoder/ghostpaste/issues/6)
1818

1919
### Dependencies
20-
- [ ] Install @cloudflare/next-on-pages for Workers deployment
21-
- [ ] Install wrangler for local development
22-
- [ ] Install and configure shadcn/ui (using official CLI)
23-
- [ ] Install CodeMirror 6 and language modes
24-
- [ ] Install nanoid for ID generation
25-
- [ ] Install @cloudflare/workers-types for type definitions
26-
- [ ] Install development dependencies (vitest, @testing-library/react)
27-
- [ ] Install next-themes for theme management
20+
- [ ] Install @cloudflare/next-on-pages for Workers deployment - [#6](https://github.com/nullcoder/ghostpaste/issues/6)
21+
- [ ] Install wrangler for local development - [#6](https://github.com/nullcoder/ghostpaste/issues/6)
22+
- [ ] Install and configure shadcn/ui (using official CLI) - [#8](https://github.com/nullcoder/ghostpaste/issues/8)
23+
- [ ] Install CodeMirror 6 and language modes - [#9](https://github.com/nullcoder/ghostpaste/issues/9)
24+
- [ ] Install nanoid for ID generation - [#9](https://github.com/nullcoder/ghostpaste/issues/9)
25+
- [ ] Install @cloudflare/workers-types for type definitions - [#9](https://github.com/nullcoder/ghostpaste/issues/9)
26+
- [ ] Install development dependencies (vitest, @testing-library/react) - [#10](https://github.com/nullcoder/ghostpaste/issues/10)
27+
- [ ] Install next-themes for theme management - [#8](https://github.com/nullcoder/ghostpaste/issues/8)
2828

2929
### Project Structure
30-
- [ ] Create folder structure (`app/`, `components/`, `lib/`, `types/`)
31-
- [ ] Set up app router pages structure
32-
- [ ] Create base layout with theme provider
33-
- [ ] Set up global styles and CSS variables
30+
- [ ] Create folder structure (`app/`, `components/`, `lib/`, `types/`) - [#11](https://github.com/nullcoder/ghostpaste/issues/11)
31+
- [ ] Set up app router pages structure - [#11](https://github.com/nullcoder/ghostpaste/issues/11)
32+
- [ ] Create base layout with theme provider - [#8](https://github.com/nullcoder/ghostpaste/issues/8)
33+
- [ ] Set up global styles and CSS variables - [#8](https://github.com/nullcoder/ghostpaste/issues/8)
34+
- [ ] Verify Cloudflare R2 setup - [#12](https://github.com/nullcoder/ghostpaste/issues/12)
3435

3536
## 🔧 Phase 2: Core Infrastructure
3637

0 commit comments

Comments
 (0)