CrossNote is a cross-platform note-taking and knowledge-management application that runs on Android, iOS, Windows, and Linux, with installable executable files for desktop and mobile platforms.
PROJECT: CrossNote ROLE: Act as a senior software architect, cross-platform full-stack developer, UI/UX designer, desktop/mobile engineer, QA engineer, DevOps engineer, and security engineer. GOAL: Build a complete, production-ready cross-platform note-taking and knowledge-management application called CrossNote. TARGET USERS: Students, writers, developers, researchers, and professionals who need to capture notes, organize knowledge, sync content across devices, and access their notes offline on Android, iOS, Windows, and Linux. BUSINESS CONTEXT: CrossNote helps users capture ideas, organize notes into notebooks and tags, search content quickly, attach files, sync securely across devices, and work offline. It provides native-feeling applications for mobile and desktop with installable executable files. CORE FEATURES: 1. User registration, login, logout, password reset, profile management, and multi-device session management. 2. Create, edit, delete, restore, duplicate, archive, and pin notes. 3. Organize notes into notebooks, folders, tags, favorites, and trash. 4. Rich-text note editor with headings, lists, checkboxes, code blocks, tables, links, images, and file attachments. 5. Markdown support with live preview and Markdown import/export. 6. Full-text search across note titles, content, tags, and attachments. 7. Offline-first architecture: users can create and edit notes without an internet connection. 8. Secure cloud synchronization with conflict detection, merge resolution, and version history. 9. End-to-end encryption option for private notes. 10. File attachments including images, PDFs, documents, audio, and videos. 11. Note sharing through secure links with optional password protection and expiration date. 12. Collaboration on shared notebooks with role-based permissions. 13. Reminders, due dates, checklists, and task-style notes. 14. Dark mode, light mode, custom themes, and font-size accessibility settings. 15. Global keyboard shortcuts, command palette, and quick-capture window on desktop. 16. Import notes from Markdown, plain text, HTML, and Evernote-compatible export files. 17. Export notes to Markdown, PDF, HTML, plain text, and JSON. 18. Automatic backups and local encrypted backup export. 19. Cross-platform sync status indicator showing synced, pending, conflicted, and offline items. 20. Admin dashboard for user management, storage usage, subscription plans, and abuse monitoring. USER STORIES: - As a student, I want to organize notes into notebooks and tags so that I can find information quickly. - As a writer, I want to write notes offline so that I can continue working without an internet connection. - As a professional, I want to sync notes across Android, iOS, Windows, and Linux so that my content is always up to date. - As a privacy-focused user, I want to encrypt my private notes so that only I can read them. - As a team member, I want to collaborate on shared notebooks so that we can work together efficiently. - As a desktop user, I want an installable executable file so that I can install CrossNote on Windows or Linux. - As a mobile user, I want installable Android and iOS applications so that I can access my notes on my phone. TECH STACK: - Cross-platform application: Flutter + Dart - Desktop packaging: Flutter Windows executable and Linux AppImage, DEB, or RPM - Mobile packaging: Android APK/AAB and iOS IPA/App Store deployment package - Backend: Node.js + NestJS + TypeScript - Database: PostgreSQL with Prisma ORM - Local database: SQLite with Drift - Authentication: JWT authentication with refresh tokens - File storage: AWS S3 or Cloudinary - Real-time sync: WebSockets or Socket.IO - Background sync: WorkManager for Android, Background Tasks for iOS, and system scheduler for desktop - State management: Riverpod - Validation: Freezed and custom validators - Testing: Flutter test, integration_test, and Patrol - Deployment: GitHub Actions, Fastlane, Docker, and cloud platform such as Railway, Render, or AWS ARCHITECTURE: - Use a clean, modular, scalable architecture. - Separate UI, presentation logic, domain models, repositories, local data source, remote data source, sync engine, encryption layer, and external integrations. - Use offline-first design with local SQLite as the source of truth. - Use background synchronization with conflict detection and deterministic merge rules. - Use a repository pattern to abstract local and remote data sources. - Use versioned sync records and timestamps to prevent data loss. - Use dependency injection for testability and maintainability. - Make the application scalable, maintainable, and production-ready. USER INTERFACE: - Build a modern, clean, responsive, and platform-adaptive UI. - Create a mobile layout with bottom navigation, note list, note editor, search, and settings. - Create a desktop layout with sidebar navigation, multi-pane view, command palette, keyboard shortcuts, and resizable panels. - Build a notebook and tag management screen. - Build a rich-text editor with formatting toolbar, Markdown preview, attachments, checkboxes, and search within note. - Build a sync status screen showing pending changes, conflicts, last sync time, and sync errors. - Build a settings screen for account, appearance, sync, encryption, backups, storage, and shortcuts. - Include empty states, loading states, error states, and offline indicators. - Support dark mode, light mode, and system theme. - Ensure accessibility, large-text support, keyboard navigation, and screen-reader compatibility. SECURITY & PRIVACY: - Never hardcode API keys, passwords, tokens, encryption keys, or secrets. - Use secure environment configuration and provide a .env.example file. - Store sensitive data using platform secure storage: Android Keystore, iOS Keychain, Windows Credential Manager, and Linux Secret Service where available. - Encrypt local databases and sensitive files at rest. - Use end-to-end encryption for optional private notes. - Validate and sanitize all user input on client and server. - Protect against SQL injection, XSS, CSRF, insecure file uploads, and malicious attachment handling. - Hash passwords using bcrypt or Argon2. - Implement role-based access control and server-side authorization checks. - Require explicit confirmation before deleting notes, notebooks, attachments, backups, or account data. - Do not expose sensitive data, stack traces, tokens, encryption keys, or internal errors in logs or API responses. - Apply rate limiting to authentication and file-upload endpoints. - Use secure cookies, token expiration, refresh-token rotation, and device-session revocation. - Scan uploaded files for malicious content where applicable. DATA MODEL: - User: id, name, email, passwordHash, avatarUrl, plan, emailVerified, createdAt, updatedAt. - Device: id, userId, deviceName, platform, appVersion, lastSyncAt, isActive, createdAt. - Notebook: id, ownerId, title, description, color, icon, isShared, createdAt, updatedAt, deletedAt. - Note: id, ownerId, notebookId, title, content, contentType, isPinned, isArchived, isEncrypted, createdAt, updatedAt, deletedAt, lastModifiedDeviceId, syncVersion. - Tag: id, ownerId, name, color, createdAt, updatedAt. - NoteTag: id, noteId, tagId. - Attachment: id, noteId, uploaderId, fileUrl, localFilePath, fileName, fileSize, mimeType, checksum, createdAt. - NoteVersion: id, noteId, versionNumber, snapshotJson, createdBy, createdAt. - SharedNotebook: id, notebookId, userId, role, invitedBy, joinedAt. - ShareLink: id, noteId, notebookId, slug, passwordHash, expiresAt, viewCount, createdBy, createdAt. - Reminder: id, noteId, userId, remindAt, repeatRule, status, createdAt. - SyncConflict: id, userId, noteId, localSnapshot, remoteSnapshot, resolutionStatus, createdAt, resolvedAt. - Backup: id, userId, fileUrl, size, checksum, createdAt. - AuditLog: id, userId, action, resourceType, resourceId, metadata, ipAddress, createdAt. PLATFORM BUILD REQUIREMENTS: - Build a Windows executable installer for x64 and ARM64 where applicable. - Build a Linux AppImage, DEB package, and RPM package. - Build an Android APK for direct installation and an Android App Bundle for Google Play. - Build an iOS IPA package and provide App Store deployment instructions. - Ensure the application works on Android, iOS, Windows, and Linux. - Include platform-specific permissions, icons, splash screens, and app metadata. - Provide signed build instructions and release configuration. - Include automatic update support for desktop applications where feasible. - Ensure offline functionality works without requiring a backend connection. TESTING & QUALITY: - Write unit tests for note CRUD, sync logic, conflict resolution, encryption, Markdown parsing, search, and backup/export. - Write integration tests for authentication, notebooks, notes, attachments, sharing, reminders, and synchronization. - Write end-to-end tests for creating notes offline, editing notes, syncing across devices, sharing notes, restoring deleted notes, and exporting notes. - Include tests for invalid input, unauthorized access, sync conflicts, weak passwords, expired share links, corrupted attachments, and destructive actions. - Ensure the project passes linting, type checking, build, and all tests. DELIVERABLES: - Complete source code with no placeholders or unfinished features. - Flutter client source code for Android, iOS, Windows, and Linux. - Backend source code for authentication, synchronization, sharing, storage, and administration. - README with project overview, setup, environment variables, database setup, run commands, and deployment
**TermX** is an AI-powered Windows terminal app that turns natural-language requests into safe PowerShell or CMD commands. It explains each command, asks for confirmation, executes it, shows the output, detects errors, and suggests fixes.
Project: TermX — AI-Powered Intelligent Terminal You are a Senior Software Architect, Senior Python Developer, AI Engineer, and UI/UX Designer. Your task is to design and build a complete, production-quality, open-source desktop application named **TermX**. 1. Project Vision TermX is an intelligent AI-powered terminal assistant for Windows that allows developers and regular users to interact with their operating system using natural language. Users should be able to write commands in natural language, and TermX should: - Understand the user's request. - Generate appropriate PowerShell or CMD commands. - Explain what each command does. - Display the generated command before execution. - Ask for user confirmation before executing commands. - Execute approved commands. - Capture and display terminal output. - Detect and explain errors. - Suggest safe corrections. - Remember previous terminal sessions. TermX must be a real functional application, not a UI-only prototype. 2. Technology Stack Use the following technologies: - Python 3.12+ - PySide6 for the desktop GUI. - SQLite for local storage. - Ollama API for local AI integration. - HTTPX for API communication. - Pydantic for data validation. - PyInstaller for Windows executable builds. Architecture must be modular, maintainable, and scalable. Do not use Docker as a requirement. 3. Application Design Create a premium, modern, futuristic developer interface. Design language: - Dark theme by default. - Background: #0B0D12. - Secondary surfaces: #121722. - Accent: Electric blue and purple. - Rounded panels. - Subtle borders. - Smooth animations. - Modern typography. - Consistent spacing. - Professional icons. Main Layout **Sidebar** - Dashboard - AI Terminal - Command History - Sessions - AI Models - Settings - About TermX **Main Workspace** - Terminal output panel. - Natural language command input. - Generated command preview. - Execute button. - Copy command button. - Explain command button. - Clear terminal button. - AI status indicator. **Bottom Status Bar** - Current shell. - Current working directory. - AI connection status. - Selected model. - Application version. 4. Core Features A. AI Command Generator Users can write requests such as: - Show all files in the current directory. - Find large files. - Check available disk space. - Display
This prompt asks for WinForge, a complete desktop-application generator for developers on macOS or Linux who want to scaffold, develop, build, and package Windows desktop apps—and optionally macOS and Linux builds too. It combines a TypeScript CLI with a minimal web UI and produces either an Electron or Tauri project with React and TypeScript.
Build a complete, production-ready desktop application generator called "WinForge".
Goal:
Create a CLI and minimal web UI that lets a developer on macOS or Linux scaffold, develop, build, and package a Windows desktop application. The generated app must also support macOS and Linux builds.
Core requirements:
1. Support two project templates:
- Electron + React + TypeScript
- Tauri + React + TypeScript
2. CLI commands:
- `winforge create <project-name>`: Create a new project from a selected template.
- `winforge dev`: Start local development with hot reload.
- `winforge build --target windows|macos|linux|all`
- `winforge package --format exe|msi|dmg|appimage|deb|rpm`
- `winforge ci`: Generate a GitHub Actions workflow that builds Windows, macOS, and Linux artifacts.
- `winforge doctor`: Detect missing dependencies and print clear installation instructions.
3. Windows output requirements:
- Generate a Windows executable and installer.
- For Electron projects, use electron-builder or Electron Forge to produce NSIS `.exe` installers, portable `.exe` builds, and optionally `.msi`.
- For Tauri projects, configure NSIS and MSI targets.
- Include an application icon, product name, version, publisher, description, and Windows file metadata.
4. Cross-platform behavior:
- The tool must run on macOS and Linux.
- Detect the host OS and CPU architecture.
- Clearly explain which targets can be built locally and which require GitHub Actions.
- Provide a GitHub Actions workflow using:
- `windows-latest` for `.exe`, NSIS installer, and optional `.msi`
- `macos-latest` for `.dmg`
- `ubuntu-latest` for `.AppImage`, `.deb`, and `.rpm`
- Upload all build artifacts to the GitHub Actions run and optionally create a GitHub Release.
5. Developer experience:
- Interactive project setup with prompts for:
- App name
- Package identifier
- Version
- Author/publisher
- Description
- UI framework: React, Vue, Svelte, or plain HTML/CSS/JavaScript
- Package manager: npm, pnpm, yarn, or bun
- Generate clean, typed, well-commented code.
- Include a README with setup, development, build, signing, and release instructions.
- Include sensible `.gitignore`, ESLint, Prettier, and basic tests.
6. Security and quality:
- Do not enable Node.js integration in renderer processes unless explicitly required.
- Use a secure Electron preload/contextBridge pattern if Electron is selected.
- Validate all user inputs.
- Avoid hardcoded secrets.
- Use semantic versioning.
- Make all commands idempotent where possible.
7. Deliverables:
- A monorepo containing:
- CLI source code
- Project templates
- GitHub Actions workflow templates
- Documentation
- Example generated app
- Use TypeScript for the CLI.
- Use a modern build system and provide commands for development, testing, linting, and publishing.
- Include unit tests for template generation, configuration validation, and CLI commands.
- Provide a clear architecture diagram and explain how Windows builds are produced from macOS/Linux.
Important constraint:
Do not claim that unsigned or untested installers are production-ready. Include optional code-signing configuration for Windows Authenticode, macOS notarization, and Linux package signing, but keep signing disabled by default until the user supplies valid certificates.
Start by producing:
1. A concise architecture plan.
2. The repository/file structure.
3. The CLI implementation.
4. The Electron and Tauri templates.
5. GitHub Actions workflows.
6. A README with exact commands for macOS and Linux users.This prompt asks for DevOS, a Windows desktop application built with Electron that creates a custom, terminal-first developer shell on top of Windows. It is explicitly not a Windows emulator, virtual machine, or OS simulation; it is a polished UI and workflow layer that launches real installed applications and gives the desktop a futuristic, command-driven developer feel.
Build a Windows desktop application called **DevOS** using Electron. DevOS is NOT a Windows emulator and must NOT run a virtual machine. It is a custom desktop shell and UI layer that transforms the look, feel, and workflow of Windows into a highly command-driven, developer-focused operating-system experience. The app should feel like a fusion of: - Windows 95 retro desktop structure - Linux terminal - VS Code - A minimal hacker/cyberpunk operating system - A modern developer workstation ## Core Concept When DevOS launches, it should show a full-screen custom desktop environment with: - A dark, futuristic desktop background - A subtle grid, scanline, or CRT-inspired effect - Neon blue, green, or cyan accents - Monospace typography - Clean, readable, developer-focused UI - Smooth animations and responsive layout - A taskbar at the bottom - A command-style Start menu - Draggable, resizable, minimizable, and closable windows ## Desktop UI Create a custom desktop with: - Desktop icons for Terminal, File Explorer, VS Code, Browser, Git, Docker, Settings, and Task Manager - A bottom taskbar styled like a terminal status bar - A Start menu that opens like a command palette - A system tray with time, date, network status, battery status, and theme switcher - A right-click context menu with developer-oriented actions - Support for opening real Windows applications ## Start Menu The Start menu should be command-driven and searchable. Show applications and commands such as: - Terminal - File Explorer - VS Code - Browser - Git - Docker - Task Manager - Settings - Themes - Developer Mode Each item should display: - App name - Minimal icon - Optional command label, such as `open terminal`, `open vscode`, `open files`, or `open browser` Support keyboard navigation and quick search. ## Terminal Build a built-in terminal window with: - Monospace font - Command history - Autocomplete suggestions - Command output area - Multiple tabs - Dark terminal theme - Support for common developer commands Implement these built-in commands: - `help` - `clear` - `open terminal` - `open vscode` - `open files` - `open browser` - `open settings` - `git status` - `npm run dev` - `theme dark` - `theme matrix` - `theme cyberpunk` - `theme retro` - `developer mode on` - `developer mode off` The terminal should be visually central to the experience. ## File Explorer Create a developer-style File Explorer with: - Folder tree navigation - Breadcrumb path - File and folder icons - Current directory display - Open in VS Code button - Open in Terminal button - Search functionality - Support for opening real folders and files on the user's Windows system ## Real App Integration Use Electron's main process and shell APIs to open real Windows applications and URLs. The app should be able to launch: - Windows Terminal or Command Prompt - Visual Studio Code - Default browser - File Explorer - Task Manager - Git-related tools - Docker Desktop, if installed Do not simulate these applications; launch the real installed applications where possible. ## Themes Include multiple themes: - Dark IDE - Matrix - Cyberpunk - Retro Terminal - Minimal Black - Neon Green - Solarized Dark Each theme should change: - Background colors - Accent colors - Window borders - Terminal colors - Desktop wallpaper effects - UI glow and shadows ## Developer Mode Add a **Developer Mode** that changes the entire desktop into a coding-first environment. When enabled: - Increase terminal visibility - Show system stats such as CPU, RAM, disk, and network usage - Display Git branch and project status - Show quick actions for running projects - Add keyboard shortcuts - Use a more technical, terminal-heavy layout ## Visual Style Use a polished, premium, futuristic design: - Dark background, preferably near-black or deep navy - Neon cyan, electric blue, or green accents - Thin borders and sharp window edges - Subtle glassmorphism - Monospace fonts for terminal and labels - Modern sans-serif fonts for general UI - Smooth hover effects - Subtle CRT or scanline effects - No cluttered or cheap-looking UI ## Technical Requirements - Use Electron - Use HTML, CSS, and JavaScript or TypeScript - Use a clean component-based frontend structure - Use IPC securely between renderer and main process - Use Electron `shell` APIs for opening apps and URLs - Make the app responsive across different screen sizes - Optimize performance and startup time - Ensure the app works on Windows - Add a professional app icon and window title: `DevOS` ## Important Constraint Do not create a Windows 95 emulator. Do not use a virtual machine. Do not emulate the Windows operating system. Instead, build a custom desktop shell/UI experience that gives Windows a command-driven, terminal-first, developer-focused appearance and workflow. The final result should feel like a real developer operating system called **DevOS**, built for programmers who want their Windows desktop to look and work like a terminal-based coding environment.
This prompt guides you through setting up and deploying Windows using Microsoft Deployment Toolkit (MDT) and Windows Deployment Services (WDS).
Act as a Systems Administrator. You are an expert in deploying Windows operating systems using Microsoft Deployment Toolkit (MDT) and Windows Deployment Services (WDS). Your task is to guide a team through the process of setting up and deploying Windows images across a network. You will: - Prepare the deployment environment, including the installation of MDT and WDS. - Create and configure deployment shares. - Import operating system images and drivers into MDT. - Configure task sequences for automated deployment. - Use WDS to manage and deploy images over the network. Rules: - Ensure all deployment steps adhere to best practices for security and efficiency. - Provide clear documentation for each step to facilitate team understanding and execution. Variables: - serverName - Name of the server where MDT and WDS are installed - networkPath - Network path for deployment shares - osVersion - Version of Windows to be deployed