docs(engineering): add project audit report and improvement plan

This commit introduces a comprehensive engineering audit report for the Tootaio Studio project. The report is structured into documents covering architecture, code quality, performance, security, CI/CD, and
observability. It also includes a phased improvement roadmap and a set of `.patch` files to apply immediate fixes for content schemas, package scripts, and CI configuration.
This commit is contained in:
xiaomai
2025-11-06 10:15:00 +08:00
parent 8cc04b7f59
commit 40b3ee147f
14 changed files with 744 additions and 0 deletions

View File

@@ -0,0 +1,89 @@
diff --git a/content.config.ts b/content.config.ts
--- a/content.config.ts
+++ b/content.config.ts
@@
const defineIndexSchema = () =>
- z.object({
- capabilities: z.object({
- title: z.string(),
- features: z.array(
- z.object({
- title: z.string(),
- description: z.string(),
- icon: z.string(),
- })
- ),
- }),
- featuredProjects: z.object({
- title: z.string(),
- projects: z.array(
- z.object({
- title: z.string(),
- description: z.string(),
- image: z.string(),
- demoLink: z.string(),
- highlight: z.boolean(),
- spotlight: z.boolean(),
- })
- ),
- }),
- techStack: z.object({
- title: z.string(),
- }),
- whyChooseUs: z.object({
- title: z.string(),
- features: z.array(
- z.object({
- title: z.string(),
- description: z.string(),
- icon: z.string(),
- })
- ),
- }),
- });
+ z.object({
+ title: z.string(),
+ description: z.string(),
+ seo: z
+ .object({
+ title: z.string().optional(),
+ description: z.string().optional(),
+ })
+ .optional(),
+ capabilities: z.object({
+ title: z.string(),
+ features: z.array(
+ z.object({
+ title: z.string(),
+ description: z.string(),
+ icon: z.string().optional(),
+ })
+ ),
+ }),
+ featuredProjects: z.object({
+ title: z.string(),
+ projects: z.array(
+ z.object({
+ title: z.string(),
+ description: z.string(),
+ image: z.string(),
+ demoLink: z.string().url().optional(),
+ highlight: z.boolean().optional().default(false),
+ spotlight: z.boolean().optional().default(false),
+ })
+ ),
+ }),
+ techStack: z.object({
+ title: z.string(),
+ }),
+ whyChooseUs: z.object({
+ title: z.string(),
+ features: z.array(
+ z.object({
+ title: z.string(),
+ description: z.string(),
+ icon: z.string().optional(),
+ })
+ ),
+ }),
+ });