devskill 2.0.4 → 2.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/.claude/settings.local.json +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +4 -1
  4. package/landing/AGENTS.md +5 -0
  5. package/landing/CLAUDE.md +1 -0
  6. package/landing/README.md +36 -0
  7. package/landing/app/[locale]/layout.tsx +58 -0
  8. package/landing/app/[locale]/page.tsx +357 -0
  9. package/landing/app/globals.css +129 -0
  10. package/landing/app/icon.tsx +41 -0
  11. package/landing/app/opengraph-image.tsx +69 -0
  12. package/landing/components/ui/accordion.tsx +74 -0
  13. package/landing/components/ui/badge.tsx +52 -0
  14. package/landing/components/ui/button.tsx +60 -0
  15. package/landing/components/ui/card.tsx +103 -0
  16. package/landing/components/ui/copy-button.tsx +60 -0
  17. package/landing/components/ui/navigation-menu.tsx +168 -0
  18. package/landing/components.json +25 -0
  19. package/landing/eslint.config.mjs +18 -0
  20. package/landing/i18n/request.ts +17 -0
  21. package/landing/i18n/routing.ts +17 -0
  22. package/landing/lib/utils.ts +6 -0
  23. package/landing/messages/en.json +42 -0
  24. package/landing/messages/vi.json +42 -0
  25. package/landing/middleware.ts +9 -0
  26. package/landing/next.config.ts +10 -0
  27. package/landing/package-lock.json +10540 -0
  28. package/landing/package.json +35 -0
  29. package/landing/postcss.config.mjs +7 -0
  30. package/landing/public/file.svg +1 -0
  31. package/landing/public/globe.svg +1 -0
  32. package/landing/public/next.svg +1 -0
  33. package/landing/public/vercel.svg +1 -0
  34. package/landing/public/window.svg +1 -0
  35. package/landing/tsconfig.json +34 -0
  36. package/meta.ts +9 -0
  37. package/package.json +11 -1
  38. package/scripts/cli.ts +121 -37
@@ -0,0 +1,17 @@
1
+ import {getRequestConfig} from 'next-intl/server';
2
+ import {routing} from './routing';
3
+
4
+ export default getRequestConfig(async ({requestLocale}) => {
5
+ // This should typically correspond to the `[locale]` segment
6
+ let locale = await requestLocale;
7
+
8
+ // Ensure that a valid locale is used
9
+ if (!locale || !routing.locales.includes(locale as "en" | "vi")) {
10
+ locale = routing.defaultLocale;
11
+ }
12
+
13
+ return {
14
+ locale,
15
+ messages: (await import(`../messages/${locale}.json`)).default
16
+ };
17
+ });
@@ -0,0 +1,17 @@
1
+ import {defineRouting} from 'next-intl/routing';
2
+ import {createNavigation} from 'next-intl/navigation';
3
+
4
+ export const routing = defineRouting({
5
+ // A list of all locales that are supported
6
+ locales: ['en', 'vi'],
7
+
8
+ // Used when no locale matches
9
+ defaultLocale: 'vi',
10
+ // Hide default locale from URL
11
+ localePrefix: 'as-needed'
12
+ });
13
+
14
+ // Lightweight wrappers around Next.js' navigation APIs
15
+ // that will consider the routing configuration
16
+ export const {Link, redirect, usePathname, useRouter, getPathname} =
17
+ createNavigation(routing);
@@ -0,0 +1,6 @@
1
+ import { clsx, type ClassValue } from "clsx"
2
+ import { twMerge } from "tailwind-merge"
3
+
4
+ export function cn(...inputs: ClassValue[]) {
5
+ return twMerge(clsx(inputs))
6
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "Index": {
3
+ "title": "Upgrade Your AI's Brain",
4
+ "subtitle": "Equip Cursor, Windsurf, Cline, Antigravity, Claude Code, Codex, GitHub Copilot and other AI Agents with expert programming superpowers via a single interactive prompt.",
5
+ "problem": "The Problem",
6
+ "solution": "The Solution",
7
+ "why_devskill": "The power of devskill",
8
+ "installation": "Installation & Quick Start",
9
+ "collections": "Skill Collections",
10
+ "footer": "© 2026 devskill. Empower your AI assistants.",
11
+ "contribute_title": "Build & Contribute",
12
+ "contribute_desc": "Does your team have unique coding standards? You can easily build a completely customized AI brain! If you have any awesome frameworks or best-practices you'd like to share, create an Issue on GitHub so we can add it to devskill.",
13
+ "contribute_cta_issue": "💡 Suggest a Skill",
14
+ "contribute_cta_build": "🛠️ Build Your Own",
15
+ "architecture_title": "Smart Directory Architecture",
16
+ "architecture_desc": "More than just a CLI, devskill provides a clearly stratified Knowledge Base management pipeline.",
17
+ "sources_title": "The Root (sources/)",
18
+ "sources_desc": "The raw data layer. Stores official documentation, template repos, and guidelines (often tracked as git submodules). AI reads this to generate your SKILL.md rules.",
19
+ "vendor_title": "Submodules (vendor/)",
20
+ "vendor_desc": "Your external dependency layer. Automatically syncs community or third-party high-quality skills into your project. Keep them fresh with a single 'npm start sync'."
21
+ },
22
+ "Hero": {
23
+ "badge": "🚀 NEW: devskill v2.0",
24
+ "description": "Skip the tedious setup. Pick your favorite tech stacks from our interactive CLI, and let devskill inject specialized project guidelines (SKILL.md) directly into your AI.",
25
+ "cta": "Explore GitHub Skills",
26
+ "install_cmd": "npx devskill"
27
+ },
28
+ "Features": {
29
+ "onboarding": {
30
+ "title": "Instant Integration",
31
+ "desc": "Launch the visual CLI, select frameworks, and watch context stream directly into your .agents/skills folder."
32
+ },
33
+ "accuracy": {
34
+ "title": "Senior-Level Quality",
35
+ "desc": "From deep Vue patterns to strict Phoenix Ecto rules, your AI gets zero-hallucination context to write code the right way."
36
+ },
37
+ "frictionless": {
38
+ "title": "1-Tap Install & Update",
39
+ "desc": "Using npx devskill, adding superpowers to your AI has never been faster or looked this good."
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "Index": {
3
+ "title": "Nâng cấp bộ não AI của bạn",
4
+ "subtitle": "Trang bị cho Cursor, Windsurf, Cline, Antigravity, Claude Code, Codex, GitHub Copilot và các AI Agent siêu năng lực lập trình chuyên sâu chỉ với một câu lệnh.",
5
+ "problem": "Vấn đề",
6
+ "solution": "Giải pháp",
7
+ "why_devskill": "Sức mạnh thực sự của devskill",
8
+ "installation": "Cài đặt & Trải nghiệm",
9
+ "collections": "Bộ sưu tập Skills",
10
+ "footer": "© 2026 devskill. Xây dựng bộ não mạnh mẽ nhất cho AI của bạn.",
11
+ "contribute_title": "Tự Xây Dựng & Đóng Góp",
12
+ "contribute_desc": "Đội ngũ của bạn có quy chuẩn code riêng? Đừng lo, bạn có thể tự build bộ não AI chuyên biệt cho team! Nếu bạn biết một framework hay best-practices nào đỉnh cao, hãy tạo Issue trên GitHub để mình thêm vào devskill nhé.",
13
+ "contribute_cta_issue": "💡 Gợi ý Skills (Tạo Issue)",
14
+ "contribute_cta_build": "🛠️ Tự Build Skills",
15
+ "architecture_title": "Cấu trúc Thư mục Thông minh",
16
+ "architecture_desc": "Không chỉ là một CLI, devskill cung cấp vòng đời quản lý tri thức (Knowledge Base) phân tầng rõ rệt.",
17
+ "sources_title": "Nguồn gốc (sources/)",
18
+ "sources_desc": "Nơi chứa tài liệu gốc, mã nguồn mẫu, official documentation (thường track dưới dạng git submodules). AI sẽ đọc và đọc hiểu tự động để trích xuất các quy chuẩn ra file SKILL.md.",
19
+ "vendor_title": "Cộng đồng (vendor/)",
20
+ "vendor_desc": "Kho lưu trữ các skill chất lượng cao được chia sẻ từ cộng đồng hoặc tổ chức khác. Chỉ cần 1 lệnh 'npm start sync' để cập nhật liên tục mọi thay đổi về máy!"
21
+ },
22
+ "Hero": {
23
+ "badge": "🚀 MỚI: devskill v2.0",
24
+ "description": "Không cần thiết lập rườm rà. Chọn mâm đồ nghề (framework) yêu thích của bạn từ CLI tương tác và để devskill bơm trực tiếp các quy chuẩn dự án (SKILL.md) vào não AI.",
25
+ "cta": "Khám phá GitHub Skills",
26
+ "install_cmd": "npx devskill"
27
+ },
28
+ "Features": {
29
+ "onboarding": {
30
+ "title": "Tích hợp tức thì",
31
+ "desc": "Mở CLI trực quan lên, click chọn framework, và kiến thức sẽ được đẩy thẳng vào thư mục .agents/skills của bạn."
32
+ },
33
+ "accuracy": {
34
+ "title": "Code chuẩn như Senior",
35
+ "desc": "Các quy định khắt khe nhất từ cấu trúc Vue đến Phoenix Ecto đều được đúc kết sắc nét để AI của bạn không bao giờ code sai pattern."
36
+ },
37
+ "frictionless": {
38
+ "title": "Cài đặt & Cập nhật 1 chạm",
39
+ "desc": "Với npx devskill, trải nghiệm nâng cấp sức mạnh AI của bạn chưa bao giờ nhanh gọn và phong cách đến thế."
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,9 @@
1
+ import createMiddleware from 'next-intl/middleware';
2
+ import {routing} from './i18n/routing';
3
+
4
+ export default createMiddleware(routing);
5
+
6
+ export const config = {
7
+ // Match only internationalized pathnames
8
+ matcher: ['/', '/(vi|en)/:path*']
9
+ };
@@ -0,0 +1,10 @@
1
+ import type { NextConfig } from "next";
2
+ import createNextIntlPlugin from "next-intl/plugin";
3
+
4
+ const withNextIntl = createNextIntlPlugin();
5
+
6
+ const nextConfig: NextConfig = {
7
+ /* config options here */
8
+ };
9
+
10
+ export default withNextIntl(nextConfig);