The direct proton capture and resonance proton capture properties of stellar reactions 22 Mg(p,γ) 23 Al and 26 Si(p,γ) 27 P are studied by employing a mean-field potential obtained from the Skyrme-HartreeFock (SHF) model. Calculations with the SHF potential reproduce well the loosely-bound structure of the ground states as well as the widths of the resonant states in these nuclei. With the obtained potential we estimate the reaction rates of direct proton capture and resonance proton capture to nuclei 23 Al and 27 P. The effect of the 27 P loosely-bound structure on the S factor of the direct proton capture is also discussed.proton capture reaction, mean field potential, proton-rich nuclei, shell model Proton capture reaction is of increasing interest in nuclear physics as well as in astrophysics. The famous Carbon-Nitrogen-Oxygen cycle starts from the proton capture of 12 C. The nucleosynthesis of proton-rich heavy nuclides (that are usually called p-nuclei) proceeds mostly through the proton capture and/or photo nuclear reactions. P -nuclei with the mass number up to A ∼ 100 can also be produced by the rapid proton capture process (rpprocess) [1,2] . The rp-process is a sequence of (p, γ) reactions and β + decays that are responsible for the burning of hydrogen into heavier elements [3] . The hydrogen burning rate is strongly influenced by the proton capture reaction [4] . It has also been shown that the proton capture reaction is helpful for the investigation of nuclear spectroscopy and the production of proton-rich exotic nuclei [5] . Therefore it is very useful to investigate the dynamical processes involving the proton capture.Of special interest is the proton capture to exotic nuclei with loosely-bound s 1/2 proton. The recent experiment of the 16 O(p, γ) 17 F stellar reaction shows that the halo structure of the π1s 1/2 orbit in 17 F can significantly enhance the astrophysical S factor of the direct proton capture to the nucleus at low bombing energies [6] . In the nuclear chart, the nuclei, 17 F, 23 Al and 26,27,28 P, are among the lightest ones which may carry looselybound 1s 1/2 protons in the ground or low-lying states [6−22] . It remains unclear whether the looselybound structure of the Al and P isotopes affects the direct capture reaction property. Moreover, the 22 Mg(p, γ) 23 Al and 26 Si(p, γ) 27 P reactions are important for the understanding of the nucleosyn-