You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(list"Derive a lightweight architecture guardrails document for this existing repository."
740
-
(format"Repository path: %s" git-root)
741
-
(format"Write or update @%s in Org-mode format." relative-path)
742
-
""
743
-
"Infer practical module boundaries, dependency rules, state ownership rules, and validation expectations from the current code, tests, docs, and filenames."
744
-
"Do not invent an ideal architecture."
745
-
"Do not force DDD, Hexagonal Architecture, or Clean Architecture onto the repository."
746
-
"Prefer simple, practical rules over abstract architecture theory."
747
-
"Mark uncertain conclusions clearly."
748
-
"Focus on what helps future AI coding sessions avoid breaking boundaries or introducing messy dependencies."
749
-
"Do not suggest large refactors unless clearly separated as optional future ideas."
750
-
"Keep it concise, practical, and small enough to reuse in future AI prompts."
751
-
""
752
-
"Use this Org structure:"
753
-
"#+TITLE: Architecture Guardrails"
754
-
""
755
-
"* Purpose"
756
-
"* Important Modules / Areas"
757
-
"* Dependency Rules"
758
-
"* State and Ownership Rules"
759
-
"* AI Change Rules"
760
-
"* Required Validation"
761
-
"* Notes and Uncertainties"
762
-
""
763
-
"If the file already exists, refine it instead of rewriting unrelated guidance.")
764
-
"\n")))
765
-
766
-
;;;###autoload
767
-
(defunai-code-derive-architecture-guardrails ()
768
-
"Ask the current AI backend to derive repository architecture guardrails."
(list"Derive a lightweight architecture guardrails document for this existing repository."
712
+
(format"Repository path: %s" git-root)
713
+
(format"Write or update @%s in Org-mode format." relative-path)
714
+
""
715
+
"Infer practical module boundaries, dependency rules, state ownership rules, and validation expectations from the current code, tests, docs, and filenames."
716
+
"Do not invent an ideal architecture."
717
+
"Do not force DDD, Hexagonal Architecture, or Clean Architecture onto the repository."
718
+
"Prefer simple, practical rules over abstract architecture theory."
719
+
"Mark uncertain conclusions clearly."
720
+
"Focus on what helps future AI coding sessions avoid breaking boundaries or introducing messy dependencies."
721
+
"Do not suggest large refactors unless clearly separated as optional future ideas."
722
+
"Keep it concise, practical, and small enough to reuse in future AI prompts."
723
+
""
724
+
"Use this Org structure:"
725
+
"#+TITLE: Architecture Guardrails"
726
+
""
727
+
"* Purpose"
728
+
"* Important Modules / Areas"
729
+
"* Dependency Rules"
730
+
"* State and Ownership Rules"
731
+
"* AI Change Rules"
732
+
"* Required Validation"
733
+
"* Notes and Uncertainties"
734
+
""
735
+
"If the file already exists, refine it instead of rewriting unrelated guidance.")
736
+
"\n")))
737
+
738
+
;;;###autoload
739
+
(defunai-code-derive-architecture-guardrails ()
740
+
"Ask the current AI backend to derive repository architecture guardrails."
("v""GitHub PR AI Action" ai-code-pull-or-review-diff-file)
468
+
;; DONE: Move ai-code-derive-architecture-guardrails ai-code-file.el. Add a new menu item: "Derive architecture document", bind to D. It let user choose from complet-reading: Derive Architecture Guardrails, and Derive DDD Context for Repo. No need to keep other two separate menu items
0 commit comments